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
.md
extension for internal links. - Use the
#
symbol for internal links to (sub-) headings.
Example
Images¶
- Use
![alt text](url)
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
```language
for code blocks with syntax highlighting. - Use
```language title="name"
for code blocks with syntax highlighting and a title.
Example
Admonitions¶
- Use
!!! note
for notes. - Use
!!! tip
for tips. - Use
!!! warning
for warnings. - Use
!!! danger
for dangers. - Use
!!! example
for examples. - Use
!!! question
for questions.
Example
Keyboard Shortcuts¶
- Use
++
for keyboard shortcuts. - Use
++ctrl+f++
for keyboard shortcuts with multiple keys. - Use lowercase letters for keyboard shortcuts.