Tom Coleman 7e6a43bac6
Merge pull request #11733 from storybookjs/import-decorator
Add example of wiring up an import decorator
2020-08-01 10:55:02 +10:00
..
2020-07-30 16:35:50 +01:00
2020-07-30 16:27:59 +01:00
2020-05-12 16:07:17 +00:00
2020-07-31 11:19:32 +10:00
2020-07-30 16:10:21 +01:00

Edit Documentation

Documentation is written in Markdown and located inside the docs/ directory.

Documentation is deployed via the frontpage repository.

Guidelines for Writing Good Documentation

  1. Explain why in addition to how. If something is designed a certain way for a reason, provide that reason.
  2. Provide examples of code snippets whenever possible - showing is always better than telling.
  3. Avoid simplifying problems - this frustrates users even more when they don't understand something "simple".
  • Bad examples:
    • All you need to do is apply...
    • Simply add...
    • The object is just...
  1. Use concise language - The less time users spend on reading and understanding docs, the better.
  • Avoid using passive voice.
    • Passive (bad): It is believed by Storybook that empowering component builders is important.
    • Active (good): Storybook believes in empowering component builders.
  • Place action in the verb.
    • Indirect action (bad): A refactor of this code is necessary.
    • Direct action (good): This code needs to be refactored.
  1. Avoid the use of pronouns - documentation should not address the reader because not everything applies to the person reading our docs.
  • Don't use you to refer to the user or a third party.
    • Pronoun (bad): You can also...
    • Without pronoun (good): Users can also...
  • Don't use we to refer to Storybook, contributors, or Storybook users.
    • Pronoun (bad): We can create this component...
    • Without pronoun (good): The component can be created...
  • Don't use he, she, him, her, etc. to refer to a third party unless referring to a specific person.
  • Refer to contributors and the product as Storybook.
  • Refer to users as users.