-
Notifications
You must be signed in to change notification settings - Fork 684
Documentation Guidelines
As part of the Definition of Done, documentation is a necessary part of any Sprint deliverable. Use these guidelines for any documentation you create in a Sprint.
-
Documentation can be in the form of a series of notes for the tech writer to work from.
-
Documentation you provide does not have to be in a perfect state, but it should provide enough details for the tech writer to write a final draft.
-
Documentation must be in Markdown format.
-
Documentation files should be created in the following directories:
-
pwa-devdocs/src/_drafts
(preferred) packages/peregrine/docs
packages/peregrine/src/**/_docs_/
packages/pwa-buildpack/docs
-
-
Break up sentences into separate lines to make the raw markdown easier to read and review.
Example:
The quick brown fox jumps over the lazy dog. Grumpy wizards make toxic brew for the evil queen and jack.
-
Use reference-style links to make the raw markdown easier to read and review. Link definitions must be located at the bottom of the page.
Example:
Visit [Daring Fireball][] for more information. [Daring Fireball]: http://daringfireball.net/
Every UI component work in the Peregrine library should have the following:
-
A Storybook story for the new component.
Example: Price story
-
Reference documentation that provides the following information:
- A summary of the UI component and what it can be used for
- A list of props with descriptions for each prop
- One or more code examples
Example: Item reference documentation
Feature documentation is required for any new PWA Studio feature that third party developers can use or configure in their own projects.
The documentation must have the following content:
- A description of the feature (What is it?)
- Use cases for the feature (Why should I use it?)
- A simple example of the feature (How do I use it?)
- Descriptions of the API and its configuration points
Example: REST API client
Since Venia is a reference storefront, we must document how it was put together so that others can learn how to create their own storefront.
Venia implementation documentation should include the following:
- A description of what was implemented and what problem or use case it addresses
- A description of the general approach for the implementation
- A list of PWA Studio components/features that were used and how
- A list of Magento endpoints used in the implementation
Example: REST checkout flow
- Sync calls:
- Check the calendar
- Recordings - https://goo.gl/2uWUhX
- Slack: #pwa Join #pwa
- Contributing
- Product