-
Notifications
You must be signed in to change notification settings - Fork 31
Documentation Roadmap #59
Comments
Not sure if we should discuss the IA strategy again soon to decide how to handle the content migration. Might be a good idea. |
User's that land on a page like this one https://github.com/nodejs/nodejs.org/blob/master/locale/en/docs/guides/simple-profiling.md which outputs to https://nodejs.org/en/docs/guides/simple-profiling/ can easily get confused about what version of node the doc is referring to. There is a PR open for the page here nodejs/nodejs.org#449 but there doesn't seem to be a good pattern here to refer to how this or other articles will describe how node works at different versions within the single document. In this case, for example, the tool referenced for 4.x is no longer in master and requires going into 4.2.4 on git to access here https://github.com/nodejs/node/tree/v4.2.4-proposal/tools/v8-prof I realize this is somewhat specific to this article, but I think it illustrates the need to have more structure around this type of documentation staying correct for a range of versions. @chrisdickinson thanks for all your dedication to the docs |
|
Documenting what things throw. Rust has it in their API docs like this: https://doc.rust-lang.org/std/string/struct.String.html#method.reserve One case that has burned us at New Relic was |
I think it could be really nice to revamp the error messages errors have in Node. I think doc pages should attempt to explain how to deal with said errors. I'd like to discuss the possibility of comments on API methods like some other languages have. |
Yeah...I really wish node had actual error codes and different error types. It really sucks having to parse the message to attempt to derive some actual context from the errors we get. It's kind of terrible. Better docs would help, but I think that's only part of the solution. |
I think I've found where I want to focus on. I've done a lot of with FS and found many skeletons. |
Linking in nodejs/node#1684 |
Yes, I know that I can go look at older versions of the API, but it's a pain. I would prefer always looking at the latest version and figuring out from there whether the API I want is available in that version or not.
|
That a good point @giltayar One of the documentation features I really liked from Android was that you could change you API Level (api version) and it would just grey out things that aren't supported on that version. Check out this and change the |
@DavidTPate - that's really really cool, and a lot of time must have been invested in that. But sometimes the simplest is the best in terms of value for effort: when adding an api, or changing it, just documenting the version number it was added/changed in. This will be for posterity, since the documentation is (I'm assuming) incremental. Also, for me, doing it from this point onward is good enough. Again, in terms of value for effort, going back historically and figuring things out isn't worth the effort. |
The naming of anchors. For instance, the link to
|
hi! i'm from the @nodejs/inclusivity WG. we fielded an issue about experiences joining large open source projects: nodejs/inclusivity#86 based on this, we plan on developing a the tracking issue for this is here nodejs/inclusivity#96 would love to collaborate with ya'll |
@Zirak That would break any existing links people have made to the docs from elsewhere. It may be possible to add extra anchors for cleaner names in the future doctool though. I'll add that to the list of stuff to consider. @ashleygwilliams As I mentioned in that tracking issue, internals docs is a thing we want to be better at, which should help with that. |
@Qard You're right. A mediocre solution would be to just have both, something like:
|
I know @ashleygwilliams has worked on for the npm docs, but we badly need something to clarify what |
i have a module that converts 'unlink(3)' to a link. would love to make a PR. i was planning on it months ago and just forgot 😅 |
Hi! Sorry if it already exists in the docs and I missed it. Maybe some of it can link to v8 docs, but a whole picture that can get a beginner to wrap around his head about how exactly is nodejs built. All the way to the even loop, including design principles, and key optimization points. An excellent example of this is Kafka's docs both the getting started and the design parts |
I'm imagining a target audience index similar to the API docs Stability index. Guides and Topics would have a target audience (beginner, intermediate, advanced) indicator at the top of the Topic/Guide possibly linking to prerequisite Guides and/or Topics. We could provide a TOC Guide for each target audience--beginner, intermediate, and advanced--each of which could provide "pathways" to steer users to appropriate Topics based upon their skill levels. Granted, determining the skill level of a given Topic might be non-trivial. I imagine API docs would almost always be advanced, as they are provided as a reference with boilerplate usage examples. A notice saying "This is Advanced stuff" especially if there are links to relevant Guides and Topics, would help direct users to Guides and Topics appropriate for their skill/knowledge level. For example, a path for beginners:
Intermediate:
Advanced:
|
@techjeffharris Good list. I guess |
Thanks! The list was from the top-of-my-head to get the ideas flowing. Great article, though it could be even better if kept up to date with latest changes and best practices. |
OK, closing this now, slightly later than promised. What follows is a distillation of what's been mentioned in this issue, grouped into related chunks of work. This is not the roadmap itself, and it is not prioritized. I will propose a Content
Metadata & Features for Readers
Tooling (for authors)
|
Oh, and I almost forgot to mention: Thank you all for participating in this! |
Great Distillation! |
Hi all —
I've noticed that it can be overwhelming to look at the state of the docs and try to pick a single thing out to work on. There are a ton of things that need improvement, and everyone sees different deficiencies in the docs. Further complicating matters, the docs are a relatively tight space to work within — it's really easy to end up stepping on other folks' toes when making larger changes.
With that in mind, I'd like to run a quick exercise. In this issue, I'd like you to list as many different features, tools, or docs that you think need work. At this point this is unranked listing — no +1's or votes at this point, please! Feel free to repeat items others have said, though. Examples might be:
I will close this issue at the end of the week and put forward a roadmap for discussion.
/cc @nodejs/documentation
The text was updated successfully, but these errors were encountered: