Gatsby: [docs] add Lifecycle Sequence, and then Diagrams

Created on 28 Jun 2018  路  8Comments  路  Source: gatsbyjs/gatsby

Summary

The current Lifecycle APIs docs page is pretty sparse. The Reference/Node APIs are autogenerated from jsdoc which is SWEET because it is likely to be up to date, but not so sweet because it is in alphabetical rather than chronological order. Also its not clear what are "major" lifecycles and what are less important.

I wrote up this gist from my own investigations, but it would probably make sense to have this in the docs somewhere as people found it useful for bug tracking/plugin creation.

Decisions to make, assuming we want this in the docs:

  1. I think it would make sense to just put up and iterate on an all-text sequence, and then eventually make charts once we agree how best to represent this?

  2. The other big choice to make is autogeneration vs manual maintenance. I suspect it may take more effort to do the former than the latter.

btw: please tell me if these kinds of open/discussiony issues are welcome, I'm actually not sure since this channel is also for bugs and stuff.

help wanted documentation

All 8 comments

Very helpful! We definitely want to do this so appreciate you kicking off a discussion. /cc @kkemple @shannonbux

Yeah this is very much aligned with what we are already planning! for me, I would personally prefer to use manual vs auto-generated for many of the reasons you mentioned, but also because docs like that do fit under API references but are a bit cold for guide type docs.

I will take a look at your gist today and I love the idea of just getting a PR up and then just iterate until we are happy and then build any visualizations off of that. Would love to eventually get to something like this:

screen shot 2018-06-28 at 2 02 22 pm

Yes, very interested in this because I'd say it is one of the most common questions about Gatsby: "what is Gatsby?"
"what is Gatsby doing under the hood?"
"how does Gatsby work?"

So I know those are big questions! People want this!

well I can put in a few words then and we can slowly add to that. I think the problem with this kind of thing is its a deep, deep rabbit hole. the more detail people want, they more they basically just have to go through the source code. so we have to strike a balance somehow.

(concurrently I also think the console output itself needs to be redesigned.. which will make -this- effort a lot easier)

I love the idea of just getting a PR up and then just iterate

馃憤 to this

concurrently I also think the console output itself needs to be redesigned..

and 馃憤 to this!

sorry I know I come up with a lot of ideas for work. I will try to pr some things to balance it.

wrote out some stuff, please edit if factually incorrect but this is my judgment of balance between detail vs keeping it high level.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dustinhorton picture dustinhorton  路  3Comments

benstr picture benstr  路  3Comments

KyleAMathews picture KyleAMathews  路  3Comments

kalinchernev picture kalinchernev  路  3Comments

brandonmp picture brandonmp  路  3Comments