Writing Consistent Documentation: Style, Case, and Structure

Consistent documentation comes from two things: a short style sheet that settles the decisions writers would otherwise make differently every time (heading case, product names, code formatting, list style), and a linter that catches the slips. Borrow everything else from an established style guide. The part that's specific to your docs fits on one page.
Why consistency in documentation matters
People read technical docs by scanning, and they treat differences as meaningful. If one page says "workspace" and the next says "project", a careful reader assumes they're two different things and goes looking for the difference. If a command is in code font on one page and plain text on another, they wonder whether it's the same command. Inconsistency spends your reader's attention on questions that have no answer. It also hurts search, because people search for the term they've already seen.
There's a cost on the writing side too. Without written decisions, the same debates come back in every review. Writing a decision down settles it once.
Start from an existing style guide
Don't write a style guide from scratch. Adopt a public, maintained one, such as the Google developer documentation style guide or the Microsoft Writing Style Guide, and record only your exceptions and additions. Both use sentence case for headings, and both cover the everyday questions, from writing numbers to referring to buttons. Your own sheet can then open with "We follow the Google guide, except:" and stay short.
What goes on a documentation style sheet
Heading case and heading form
Pick sentence case or title case and use it everywhere, including page titles and navigation. We'd pick sentence case for docs, for three reasons: Google's guide asks for it in all headings and titles, it's easier to apply consistently because there are no small-word rules to argue about, and product names stand out when they're the only capitalized words. Title case needs a rulebook of its own. AP and Chicago, for instance, disagree on whether a preposition like "with" gets a capital. Our title case vs sentence case guide goes through the trade-offs.
Decide the grammatical form as well. Google's guide prefers task headings that start with a plain verb, "Create an instance" rather than "Creating an instance". Whichever you choose, a reader skimming the sidebar should see one pattern, not three.
A terminology list
This is the most useful part of the sheet. List every product, feature and third-party name with its exact spelling and capitalization, plus the alternatives you've decided against. A few rows of the kind we mean:
| Use | Don't use | Note |
|---|---|---|
| GitHub | Github, github | Lowercase only inside URLs |
| JavaScript | Javascript, JS | Spell it out in prose |
| sign in (verb) | log in, login (as a verb) | A house choice; pick one |
| workspace | project, space | Our name for the container |
The last two rows aren't rules from any style guide. They're the kind of decision only your team can make, which is exactly why they belong on the sheet.
Code formatting
Write down what goes in code font. Google's guide uses it for filenames and paths, class and method names, command-line tools, environment variables, HTTP status codes and placeholder variables, and keeps product names and domain names out of it. If a code item has to appear in a heading, the guide suggests pairing it with a descriptive noun, as in "The config.yaml file".
Add rules for code blocks: always fenced, always with a language identifier, and a decision on whether shell commands show a $ prompt. We'd leave the prompt out of anything readers are meant to copy.
Lists, punctuation and the small stuff
Numbered lists for steps that happen in order, bullets for everything else. Serial comma or not. One date format. How you refer to interface elements; we'd bold the label and match its on-screen capitalization exactly. Each of these is a small decision, which is precisely why every writer makes it differently unless it's written down.
Page structure
Structure is consistency too. Give each page type a template. A how-to page might always have a one-line summary, prerequisites, numbered steps and a "next steps" section; a reference page might always have a description, parameters and an example. Use one top-level heading per page and don't skip levels, so a level-two heading is never followed directly by a level-four one.
A sample one-page style sheet
House style for the docs. We follow the Google developer
documentation style guide, except where noted below.
Headings Sentence case. Task headings start with a verb:
"Create a workspace", not "Creating a workspace".
Terms See terms.md. Product names exactly as listed there.
Code font Files, paths, commands, flags, env vars, API names.
Not product names, not URLs readers visit.
Code blocks Fenced, with a language. No "$" prompt in commands
readers will copy.
Lists Numbered for sequential steps, bullets otherwise.
Serial comma: yes.
UI labels Bold, capitalized exactly as on screen.
Dates "6 October 2026" in prose, 2026-10-06 in tables.Enforce the style sheet with markdownlint and Vale
A style sheet nobody checks slowly stops being followed. For docs written in Markdown, two open-source linters cover most of it.
markdownlint: structure and proper names
markdownlint is a Node.js style checker for Markdown, usually run through a command-line wrapper such as markdownlint-cli2 or an editor extension. Its rules are about Markdown structure rather than prose: MD001 flags skipped heading levels, MD025 multiple top-level headings, MD040 fenced code blocks without a language, MD046 mixed code-block styles. MD003 is called "heading style", but it's about syntax (# headings versus underlined ones), not capitalization. markdownlint has no rule for heading case.
One rule does help with terminology. MD044 (proper-names) flags any name from your list that appears with different capitalization. In .markdownlint.json:
{
"default": true,
"MD013": false,
"MD044": {
"names": ["GitHub", "github.com", "JavaScript"],
"code_blocks": false
}
}Listing both "GitHub" and "github.com" is the documented way to allow a name that's written differently in some contexts. MD013 is the line-length rule; it's switched off here, which is a choice you can make either way.
Vale: prose rules and vocabulary
Vale is an MIT-licensed command-line linter for prose. Its documentation describes its focus as consistency across multiple authors rather than the general correctness of one writer's work, which is exactly this job. You configure it with a .vale.ini file, can install ready-made packages (there are ones for the Google and Microsoft guides), and write your own rules in YAML. Here's a setup that makes heading case an error:
# .vale.ini
StylesPath = styles
MinAlertLevel = suggestion
Vocab = Docs
Packages = Google
[*.md]
BasedOnStyles = Vale, Google, House
# styles/House/Headings.yml
extends: capitalization
message: "'%s' should be in sentence case"
level: error
scope: heading
match: $sentence
exceptions:
- GitHub
- JavaScriptYour terminology list goes in styles/config/vocabularies/Docs/accept.txt, one entry per line, and banned terms go in reject.txt beside it. With the built-in Vale style switched on, as above, accepted entries are enforced with their exact capitalization ("GitHub", never "Github") and rejected ones are flagged. Run vale sync once to download the packages, then point Vale at a file or folder. Only error-level alerts make it exit with a failure code, so in CI you can treat heading case as an error and leave the package's suggestions as advice.
One-off consistency fixes without a pipeline
Not every team has a docs pipeline, and not every fix needs one. For a single pass over a page:
- Count the variants of a term in Find & Replace. Search for "Github" with Case insensitive unticked; the output heading shows the number of matches, and the replace box fixes them all at once.
- Convert a heading in our case converter, then restore product names by hand. Two things to know: Sentence case capitalizes after a full stop, question mark or exclamation mark, not after a line break, so convert headings one at a time; and Title Case can't recognise acronyms, so "getting started with the API" comes out as "Getting Started With the Api".
- For a page that arrived in shouty capitals, use the reset-and-restore method from our guide to fixing random capitalization.
The rule of thumb
Write a decision down the second time it comes up in review. Once is a one-off; twice means it'll keep coming back. Then ask whether a linter can check it. If it can, automate it, and spend your reviews on the things only a person can judge: whether the page is accurate, and whether it answers the reader's question.


