-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] add Lifecycle Sequence, and then Diagrams #6197
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: |
Yes, very interested in this because I'd say it is one of the most common questions about Gatsby: "what is Gatsby?" 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) |
👍 to this
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. |
Adding this tweet to the conversation https://twitter.com/sebmarkbage/status/1012157736753098752?s=19 |
wrote out some stuff, please edit if factually incorrect but this is my judgment of balance between detail vs keeping it high level. |
* first attempt at lifecycle sequence docs closes #6197 * address Kyle's review I hope this is right... * address Shannon's comments address Shannon's comments
* first attempt at lifecycle sequence docs closes #6197 * address Kyle's review I hope this is right... * address Shannon's comments address Shannon's comments
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:
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?
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.
The text was updated successfully, but these errors were encountered: