Writing style

Formatting, accessibility, and inclusive language

Headings, lists, code, callouts, links, accessibility, and inclusive language: the mechanics that keep every page consistent.

The mechanics: how headings, lists, code, callouts, links, and images look and read, plus the accessibility and inclusive-language rules that are correctness, not decoration. This page is part of the documentation style guide.

Headings#

Sentence case. "Building the knowledge layer", not "Building The Knowledge Layer". No terminal period or colon. Unique and descriptive within the page, because each becomes an anchor link. No vague openers, so "Understanding indexing" becomes "Indexing". No questions except in an FAQ or troubleshooting section. Parallel across peers (all gerunds, or all nouns). Never stack two headings with no text between them, and never leave a lone single sub-section, have two or none.

Lists#

Tables#

Use tables for genuinely tabular data: flags, config keys, provider matrices, comparisons. Don't use a table to lay out prose. Give every table a short lead-in sentence, sentence-case column headers, and specific rather than generic headers ("Config key", not "Item").

Code and command examples#

Every non-trivial example follows the four-part unit:

  1. A short lead-in sentence ending in a colon, or a scenario sub-heading.
  2. One sentence on what the command does.
  3. The code block: language-tagged (the site requires an explicit language), one command per block, the command separated from its output.
  4. What the output means, especially the line the reader should see to know it worked.

More conventions:

Callouts#

Use a small, named set, sparingly. One strong callout beats five buried in prose. A callout stands alone; never bury it inline in a paragraph.

Callout Use for
Note a neutral aside worth surfacing
Tip a shortcut or a better path
Important a prerequisite or constraint the reader must not miss
Warning a destructive or irreversible action (a sync over a dirty tree, a forced branch switch)

Pick the weakest level that fits, and don't cry wolf. Reserve Warning for the genuinely destructive, matching the CLI's own safety-flag posture.

Numbers, dates, and units#

Capitalization and punctuation#

Accessibility#

These improve the rendered site for everyone.

Inclusive language#

Use neutral, precise terms. These substitutions are field-standard across Google, MDN, and Red Hat.

Avoid Use
whitelist / blacklist allowlist / blocklist (or denylist)
master / slave primary / replica, controller / device, source / replica
kill / abort (a process) stop, cancel, end, exit
dummy value placeholder
sanity check confidence check, final check
crazy, insane, dumb, blind to confusing, baffling, unaware of
man-hours, mankind person-hours, humanity
native (speaker or feature) omit, or name the specific language

Use singular "they" for a person of unknown gender, or make the subject plural, or drop the pronoun. Never default to "he" or "she". Use diverse, realistic names in examples.

Diagrams and visuals#

See also#

Next steps