The voice
This page gives the rules of a sentence in the docs. Each rule has its reason and a pair of examples: a first draft, and the text after the rule.
One idea in each sentence
Keep a sentence to 25 words or fewer, and an instruction to 20. A reader can then hold the whole sentence, and a translation tool makes fewer faults.
| First draft | After the rule |
|---|---|
| The runner, which you can install from a release or build from source if you want the newest features, starts a shell when you run it with no file and the terminal is interactive. | ztcl with no file starts an interactive shell when standard input and standard output are a terminal. (ztcl) |
The active voice
Name the thing that does the action. The reader then knows which part of the system to look at.
| First draft | After the rule |
|---|---|
| The page is written to the output folder after the links are checked. | The build checks the links, and then writes the page to the output folder. |
The present tense
Describe what the program does now. "Will" makes the reader ask when.
| First draft | After the rule |
|---|---|
| The build will give an error if a link is broken. | A dead link stops the build. |
One word for one thing
Choose one term for each thing, and use it on each page. A reader who sees a second word looks for a second thing.
| First draft | After the rule |
|---|---|
| Put the key in the config. The settings file is read first. | Put the key in the site file. The build reads the site file first. |
The ztcl docs define their terms in one place. Limits defines "compute limit" and "compute unit", and each page uses those words.
Instructions as commands
Start an instruction with its verb. The reader then sees the action at once.
| First draft | After the rule |
|---|---|
You might want to build with -strict in CI so that problems are caught. |
Build with -strict in CI. |
Positive statements
Say what to do. A negative statement makes the reader find the right action alone.
| First draft | After the rule |
|---|---|
| Don't use absolute links. | Use a relative link, such as ../install/. |
No idioms, no metaphors, no praise
An idiom does not translate, and praise says nothing that the reader can check. "Simple" and "easy" also tell a reader with a problem that the fault is theirs.
| First draft | After the rule |
|---|---|
| Flight Manual makes it a breeze to spin up a powerful docs site. | Flight Manual makes a docs site from a folder of Markdown files. |
Facts that you checked
Write only what you ran or read in the source. Say what you did not check. The reader can then trust each other sentence.
| First draft | After the rule |
|---|---|
| Works on macOS and Windows. | The release has a program for Linux on x86_64 only. On macOS and Windows, build it from source. |
The words to search for
Before you publish, search for these words. Change each one that you cannot defend:
will,should,may,might: say what the program does.just,simply,easy,easily,powerful,seamless: remove them.it,thisat the start of a sentence: name the thing.—: write two sentences.
Next: The page.