Documentation Style Guide
Use the following guidelines if you are creating documentation for DDF:
- What Should Be Documented?
- Documentation Organization
- Usage Guidelines — How to use and format key terms within DDF documentation.
- Formatting Conventions — Follow these guidelines to ensure consistent formatting of all external documentation.
- Text Replacements
- Building Documentation — Explanation of the documentation-in-code build process.
Contributing to Documentation
Documentation is included within the source code for DDF. See Building Documentation for information on how documents are constructed and distributed. To contribute to published documentation, see the Pull Request Guidelines.
Writing Style
Topic | Guidance |
---|---|
Capitalization | The DDF documentation uses the Chicago Manual of Style when capitalizing headings. All words are capitalized with the exception of articles (a, the, an, etc.) and prepositions (through, below, above, within, etc.). Here is a link to a website that correctly capitalizes headers, if there is some confusion: http://titlecapitalization.com/. |
Sentence, spaces | Use one space at the end of a sentence |
Don't Ask Nicely | Don't ask the reader to please do something. Tell them to do something. Examples:
|
Numbers, spelling | Numbers zero through nine should be typed out (e.g., one, eight, nine, etc.). Numbers greater than zero should be shown numerically (e.g., 10, 24, 65489946). However, if a sentence starts with a number, type out the number or rearrange the sentence. |
Login vs. Log in | The term "login" refers to a user's ID. "Login" is a noun, not a verb. Use the term "log in" if performing an action. Examples:
|
Latin Abbreviations. | Do not use "i.e." or "e.g." Use "for example" instead of "e.g." Replacements for "i.e" might be "specifically," "that is, " etc. "etc" is acceptable to use occasionally, but is often not the best possible wording. |
Which vs. That | Use "which" when creating an "aside" for emphasis in a sentence. Asides are almost always enclosed by commas. When an aside is removed from a sentence, the sentence still makes sense. Use "that" everywhere else. Examples:
|
Present tense | Use the present tense in instructions:
|
First Person, third person |
|
Active Voice | Favor active construction where possible.
Passive voice can be used sparingly, where appropriate. |
Bulleted lists |
|
Numbered lists |
|