MongoDB documentation style rules. Apply when writing or editing rST documentation.
Use the following markup styles when writing or editing documentation:
:guilabel: — UI ElementsUse for buttons, menus, dialogs, tabs, checkboxes, fields, icons, pages, windows.
Click :guilabel:`Save`.
In the :guilabel:`Database Name` field, enter a name.
Select :guilabel:`Start > Control Panel`.
:kbd: — Keyboard ShortcutsPress :kbd:`Shift-G` and then press :kbd:`Enter`.
`text` — Code-Related Text`mongod`, `-t``mytestdb`, `/etc/``$PATH``startTransaction()`Capitalize all words except: articles (a, an, the), conjunctions (and, but, or), prepositions, "to" in infinitives. Always capitalize first and last word.
| Type | Structure | Example |
|---|---|---|
| Conceptual | Noun phrase | "How Monitoring Works" |
| Tutorial | Imperative verb | "Install MongoDB" |
| Reference | Plural noun | "Operators and Collectors" |
Use file-based directives, not hard-coded inline code:
.. literalinclude:: /path/to/file.js
:language: javascript
.. io-code-block::
.. input:: /path/to/input.py
.. output:: /path/to/output.txt
| Avoid | Use |
|---|---|
| admin | administrator |
| argument (CLI) | option |
| blacklist/whitelist | access list |
| date (for timestamps) | timestamp |
| higher/lower (versions) | later/earlier |
| i.e. | that is |
| e.g. | for example |
| master/slave | primary/secondary |
| menu item, menu option | menu command |
| user (for people) | customer |
Prefer American English spelling.