Writer’s Guide¶
Introduction¶
This guide is intended to help you write documentation.
Writing Style¶
General¶
- Use the active voice.
- Use the present tense.
- Use the second person.
- Use the imperative mood.
- Use they/them/their as singular pronouns.
Markdown¶
General¶
- Use the GitHub Flavored Markdown syntax.
- Use the CommonMark specification.
Headings¶
- Use
#for headings. - Use
##for subheadings. - Use
###for sub-subheadings.
Lists¶
- Use
*for unordered lists. - Use
1.for ordered lists. - Use
*for nested unordered lists. - Use
1.for nested ordered lists.
Links¶
- Use
[text](url)for links.
Internal Links¶
- Use relative links for internal links.
- Use the
.mdextension for internal links. - Use the
#symbol for internal links to (sub-) headings.
Example
Images¶
- Use
for images. - Write the alt text in sentence case.
- Place images close to the text that references them.
- Use the PNG format for images.
- Use the SVG format for logos and icons.
- Use the JPEG format for photographs.
- Use the GIF format for animations.
For images that can be inverted for the dark theme, use the following syntax:
To add a caption to an image, use the following syntax:
Example
Code Blocks¶
- Use
```for code blocks. - Use
```languagefor code blocks with syntax highlighting. - Use
```language title="name"for code blocks with syntax highlighting and a title.
Example
Admonitions¶
- Use
!!! notefor notes. - Use
!!! tipfor tips. - Use
!!! warningfor warnings. - Use
!!! dangerfor dangers. - Use
!!! examplefor examples. - Use
!!! questionfor questions.
Example
Keyboard Shortcuts¶
- Use
++for keyboard shortcuts. - Use
++ctrl+f++for keyboard shortcuts with multiple keys. - Use lowercase letters for keyboard shortcuts.