ContributingDocs site
Write a page
Each page is short and starts with a picture. The file docs/AUTHORING.md is the contract.
Read the contract. docs/AUTHORING.md has the rules for each page.
1 / 5
The contract
Read docs/AUTHORING.md first. It is the contract for each page, and the only place for the rules of the text. This page gives the short version.
The model is content/docs/concepts/deploys/.
The short version
- One idea per page.
- A figure before the text.
- 220 words of sentences at most.
- Short sentences, active voice, one name for one thing.
The sentence rules come from ASD-STE100, Simplified Technical English.
Measure the page
npm run check-content -- -v <path>At least 80% of the sentences of a page must pass.
Write what the code does
- Use examples that run, with the real defaults:
http://127.0.0.1:7878for the API andhttp://<name>.localhost:8080for apps. - Document only what the code does. Check commands and flags against
--help. Check behavior against the source.