-
Notifications
You must be signed in to change notification settings - Fork 4.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
Improve the table of content of the block editor developer handbook #28460
Comments
https://developer.wordpress.org/block-editor/ Here is an overview in addition to the link Justin mentioned above: Architecture Developer Documentation Designer Documentation Contributor Guide Tutorials Component Reference Data Module Reference Package Reference Btw this should also give us some ideas on additional tutorials etc that would be nice to get added into the documentation. |
Thanks for kicking this off! Just noting two things:
Agreed! This reminds me that previously someone (can't remember who) mentioned it would be neat to have "first steps" added to the core handbook but the same idea might be neat to have here too: https://make.wordpress.org/design/handbook/get-involved/first-steps/ Noting to myself that the Outreach page is woefully out of date... might try to work on updating that while this overhaul is done :) |
@paaljoachim I have a first proposal for the toc.
What I've tried to do first is to regroup everything that is related to developing the block editor of for the block editor inside the developer documentation chapter. I also followed inside this chapter the structure that is on the homepage. |
That looks really good, Justin! I went back and forth compared to the current Block Editor handbook. I would switch these sections:
To:
Beginning with the Getting started page. After that it feels natural to have the Installation guide. Let's get Marcus @mkaz to also take a look and give feedback. |
I think you could include Installation and Development Environment under Getting Started. I would group allt the API reference documentation together, maybe as a sub-section under Develop I'm not sure Architecture is needed in Develop for the Block Editor, it is more core to the Gutenberg project, not needed to extend the editor. @youknowriad might have some thoughts on where it could go, he organized that section. Also, the "Develop for the Block Editor" is in the Developer Documentation category, I'm not sure there is a clear distinction for the added level. I think overall grouping into sections by how people coming in are thinking, maybe styles, blocks, themes, or something along those lines. Also, before implementing I think we need to figure how Full Site Editing fits in, so any re-org only needs to happen once. There is a bit of work with how publishing from GitHub to site is done, especially if moving and renaming things. @annezazu might have some thoughts for FSE parts, so tagging her. |
Thanks for the proposal @JustinyAhin I share some of the opinions expressed above:
The other thing here is that are docs in the handbook that are not specific to the block editor and maybe in the future we want to find a better way to deploy them in the WordPress docs even if they are maintained in this repo:
|
Thanks so much for all the work and effort that's gone into this. I'll add some additional thoughts:
|
Thank you for all the feedbacks Paal, Marcus, Riad and Anne. I'm working on integrating them and will post a new version of the toc here tomorrow. |
@youknowriad I don't understand why design documentation should move under "Contributor" section (is it what you are suggesting?). From what I'm reading on the design page, "this documentation will provide resources for creating beautiful and intuitive layouts." |
Here's the structure that is more complete and improved using your suggestions |
I have a couple of new readme files to write, before sending a draft PR |
It looks really good, Justin! |
@paaljoachim as I've created a new folder for appendix, I want to create a readme for this folder with the list of links to file that are in it. |
Thanks for the updated version! My only follow up feedback is how far down in the table of contents things like the history of the project and the FAQ are. I'm of two minds about this: perhaps it's been long enough now that an intro is not needed VS it's always important to clearly state/show the value add the core editor brings. |
I have a couple of opinions to share 😁 The first level items seem out of order to me. I would rather see:
I think it flows better to have the three types of people likely to benefit from this information at the top followed by resource materials. I also agree with @annezazu that FAQ and History should more prominent. Is there a strong feeling that the "Getting Started" section is not valuable? As it stands all the links that are currently in the TOC under the Getting Started Item are moved into Appendix which will leave no sub-items there. I'd recommend to move FAQ and History back up into that space, knowing that the content of the pages will be updated in a later phase of this project. |
If we are going to be doing a massive re-organization of all the docs, then I would like to see us remove the "By Role" aspect of the documentation and move to a "By Function" org structure. For example, what does a person creating a theme consider themselves? A developer? A designer? Both, right? So moving things to a functional nature of:
Also, I think we need to consider the overall UX and flows before we start re-arranging all of the files. I think we need to consider the overall documentation as a system and how it all fits together. So look at people with specific goals:
This is a good read about Documentation Systems, there are many different types of docs that we should consider how they all fit together. |
This looks like an excellent resource, thank you for sharing @mkaz I agree with what you've said about moving to a funtional structure rather than relying on readers to self-identify as a specific role, hoping to find the right resources for their needs. |
Agreed with @mkaz with the clarification that the user handbook has already split the "how to use the block editor" in https://wordpress.org/support/article/adding-a-new-block/ So the block editor handbook should be for understanding the key concepts around blocks; extending the block editor through new blocks, plugins and themes; using the gutenberg tools for other projects (components, packages, etc); and finally contributing to the Gutenberg core. I'd like to rephrase the "getting started" into "Introduction" and I think we should move "key concepts" there instead of having it within "architecture". I also think most of the stuff in "getting started" is more "reference" material that is not that important to know initially. |
Thank you for sharing the link about documentation system @mkaz. It's a very good read. Here's what I came up with for the structure based on that:
So, we'll have the doc structured as:
The names are inspired by the documentation system post, but they can be changed/adapted obviously. I summarized all this in this gist: https://gist.github.com/8f6fc4b7b4252bd5c6d9d7baa7e015af |
@JustinyAhin Where do the How-to guides come from in this structure? Do they differ from Tutorials? If so I'd love to be sure I understand the distinction! |
@DaisyOlsen the How-to guides contains pages from the Developer Documentation + Designer Documentation chapters.
|
Ah I see. I'm not sure that "how to guides" is the right label for this but I don't have an immediate alternative. @priethor - Were you thinking about documentation organization? Does this conversation weigh into that process at all? |
I agree with @DaisyOlsen on this, according to the Documentation Systems read suggested by @mkaz "How to guides" are problem-oriented; I believe "Block API Reference, "Filter Reference", etc. should be under "Reference guides", as apart from having "reference" word in their name, they are information-oriented rather than problem-oriented. On the other hand, I would suggest most of the "Tutorials" currently in the block editor handbook would be better classified as Howtos. For example, "Loading JavaScript" or "Displaying notices" each solve a particular problem, independent from one another. |
Thanks for the feedback Daisy, Héctor. I'll share another proposal soon |
@priethor I did a bit of reorganization (https://gist.github.com/8f6fc4b7b4252bd5c6d9d7baa7e015af). What it looks like now:
|
Thanks for your effort @JustinyAhin , I believe the structure is much more comprehensive now 🎉 The only other improvement I would suggest would be regarding the "Architecture" section: I think it should live under "Getting started / introduction", since the high-level architecture description and key concepts are the first material to be checked when getting started, along with the glossary. On the other hand, the "Versions in WordPress" and "Folder Structure" don't fit, in my opinion, a "Getting Started" section, they feel more like contributor material (e.g., extenders don't need to know how the Git repository is organized). I would definitely love to hear some more thoughts in this regard, though. 🙂 |
Thanks for the feedback |
Description
The next step after improving the homepage of the block editor handbook (#28142) will be to also improve the current table of content. Right now, the table of content is managed in this JSON file https://github.com/WordPress/gutenberg/blob/master/docs/toc.json.
The goal for this step is to give the TOC a more coherent structure by, for instance, grouping chapters that would make sense being together, adding content that are not yet present in the documentation.
Ideas or proposals for improving to improve the TOC are welcome under this issue.
The text was updated successfully, but these errors were encountered: