Documentation Style Guide
In an open source project like PipeCD, everyone contributes to the documentation. You can be a first-time contributor, an engineer trying to fix a bug, or perhaps one of the maintainers. This guide helps keep the PipeCD documentation consistent and easy to read and maintain. As a general rule, it is recommended to skim through this style guide and the accessibility guide before you make your first docs contribution. Large parts of this style guide have been inherited from the Kubernetes documentation. If something you are looking for is not listed here, please refer to the Kubernetes style guide for more information on how we want our documentation to be.
For setting up the documentation website locally and opening a pull request, see Contribute to PipeCD Documentation.
An inclusive and accessible community is the backbone for any successful open source project, and we want that to show in our documentation too. Please see the Accessibility Guide for accessibility guidelines.
Voice and tone
- Address the reader as you. Use we only for the PipeCD project or maintainers.
- Use the active voice and the present tense: “
pipedsends the request”, not “The request will be sent bypiped”. - Use imperative verbs for steps: “Run”, “Open”, “Add”.
- Be direct. Avoid filler such as “simply”, “just”, “easy”, or “obviously”.
- Keep sentences short. Aim for one idea per sentence.
Inclusive language
- Use gender-neutral language. Refer to a person whose gender you don’t know as they, them, or their, or address the reader as you.
- Don’t use “he”, “she”, “he or she”, “he/she”, or “s/he” for a generic user, operator, or developer.
- Prefer neutral terms such as “everyone” or “folks” over “guys”, and “staff hours” or “effort” over “manpower” or “man-hours”.
- When you can, rephrase so that no pronoun is needed: “The operator restarts
piped” or “Restartpiped” instead of “He restartspiped”.
Terminology
Use these terms consistently:
| Use | Avoid |
|---|---|
| PipeCD | Pipecd, pipeCD, Pipe CD |
piped (in code font, lowercase) |
Piped, PipeD (except at the start of a sentence or in a title) |
| control plane | Control Plane, controlplane |
| plugin | plug-in |
| deploy target | deployTarget (except when referring to the config field) |
application configuration (app.pipecd.yaml) |
app config file, config file |
piped configuration file (piped.yaml) |
piped config, config file |
Page structure
- Every page needs front matter with
title,linkTitle,weight, and a one-linedescription. - Start with a short paragraph that says what the page covers and who it is for.
- Use sentence case for headings: “Configure a deploy target”, not “Configure A Deploy Target”.
- Do not skip heading levels. The page title is the
h1, so body headings start at##. - Prefer several short sections over one long one.
- End task pages with a “What’s next” or “See also” section when there is a natural next step.
Formatting
-
Code font: use backticks for commands, file names, paths, config fields, flags, and values, such as
make run/site,spec.plugins, and--insecure=true. -
Bold: use it for UI labels and for key terms the first time they appear. Do not use it for general emphasis.
-
Code blocks: always set a language (
yaml,go,bash,console). Useconsolewhen showing a prompt with output. -
Placeholders: write them in
UPPER_SNAKE_CASEor<angle-brackets>, and explain what to replace them with. -
Lists: use numbered lists for steps in order, and bullet lists for everything else.
-
Notes and warnings: use a blockquote with a bold label:
> **Note:** > Additional context that is helpful but not required.
Links
- Use relative links between pages in the same section (
../contributing-documentation/). Use version-rooted links (/docs-v1.0.x/...) for other sections. - Write descriptive link text. See Accessibility Guide: Links.
- Link to the
masterbranch on GitHub only when you point to code that changes rarely. Otherwise link to a specific file or directory.
Code and configuration examples
- Examples should be complete enough to copy and run, or clearly marked as partial.
- Test commands and config snippets against the current release before you submit them.
- Remove secrets, real hostnames, and personal data from examples.
Versioned docs
docs-dev/holds docs for unreleased features.docs-v1.0.x/and thedocs-v0.x.x/folders hold docs for released versions.- If a fix applies to a released version, update that version’s folder as well as
docs-dev/.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.