-
-
Notifications
You must be signed in to change notification settings - Fork 15.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 Rewrite] Discussion: Docs writing guidelines and issue templates #3609
Comments
EDIT: Oh, I am blind, I just noticed ALL the other issues tagged as [Docs Rewrite]. |
@mkarajohn : heh :) and yeah, see the notional planned outline at #3313 (comment) that I'm working from. |
I think I managed to add some issue and PR templates: Thanks to @brandonroberts for the suggestion of a "landing page" PR template that points to the "real" templates |
Earlier I was asking what ES syntax we should use for snippets such as thunks: https://twitter.com/acemarke/status/1196857558457290752 @alexkrolick just had a great suggestion - docs snippets should be available in multiple language versions so you can compare syntax: https://twitter.com/TensorNo/status/1196864442262147072 Obviously that's a lot of extra work, but that part's doable. The real question is whether Docusaurus v2 supports that yet. @wgao19 , @endiliey , @yangshun : thoughts? edit Don't know about v1, but it looks like v2 explicitly supports this: https://v2.docusaurus.io/docs/markdown-features#multi-language-support-code-blocks |
As mentioned in my tweet, Docusaurus v2 already supports code blocks for in multiple language but you have to write the different versions yourself. https://react-tracked.js.org/docs/quick-start does something similar but @dai-shi wrote his own Remark plugin to do it. |
@markerikson we are using tabs in the Testing Library query docs on v1 (syntax below), but the V2 mdx option seems good too.
|
One thing I'd like us to do as part of the docs rewrite is to drop terms like "simple", "easy", and "just" from our docs entirely. Here's an article with some details on ways to do that: https://dev.to/meeshkan/how-to-remove-condescending-language-from-documentation-4a5p |
I like how the Cypress docs prefix each page with a "What You'll Learn" callout: https://docs.cypress.io/guides/getting-started/installing-cypress.html Example:
I also see that they've got 3 or 4 different color variations on blockquotes. Their files do that with templating:
I imagine we might be able to do that with a React component that renders |
Some good suggestions for creating short readable code samples in docs: https://ts.chibicode.com/refactor
|
Google just posted a set of "Technical Writing" mini-courses: |
Nice! Definitely going to go through these |
The Vue docs have a great set of writing guidelines here: |
And Digital Ocean has some excellent guidelines as well: https://www.digitalocean.com/community/tutorials/digitalocean-s-technical-writing-guidelines |
@markerikson Hi - I'm the author of the documentation system you mention (which is now published and updated at https://diataxis.fr). I'm doing free workshops for open-source projects in the Python ecosystem, to help improve their documentation. If there's interest in the JS world, please get in touch. |
The Solid folks just put up a docs writing guide that looks pretty good: https://github.com/solidjs/solid-docs-next/blob/main/WRITING.md |
Thanks @markerikson for putting up this list. I'm currently exploring how to make our documentation better and this has been helpful. Note: the link from stoplight is not valid anymore: here is the alternative: |
As a preface to actually fleshing out the docs writing tasks, I've been doing research on how to actually write good documentation. I wanted to write down some notes on what I've learned, and discuss how we can help make sure that the new docs content tries to conform to those approaches.
Docs Writing Resources
I specifically recommend that people should read through What Nobody Tells You About Documentation. It's a great post that gives excellent advice about the main categories of tech docs, and the type of content that should go in each category. The HN discussion thread on this post may be useful as well.
Additional resources worth reading:
Goals
I'd like us to have some kind of consistent set of questions that we would try to answer / use as guidelines when we work on a doc section, along the lines of:
I'd actually like to somewhat codify this in the form of an issue / PR template specifically for new and updated docs content. (It might also be nice to have templates for small docs updates like typos and such.)
Questions for Discussion
Tasks
Notes and Takeaways
Some summaries and key points from those posts:
The text was updated successfully, but these errors were encountered: