aboutsummaryrefslogtreecommitdiff
path: root/docs/documentation_best_practices.md
diff options
context:
space:
mode:
authorskullY <skullydazed@gmail.com>2017-07-03 01:30:36 -0700
committerskullY <skullydazed@gmail.com>2017-07-03 01:30:36 -0700
commitd8e29b53fe5d57f2102b77f0ce9932cdb8b021b2 (patch)
tree14dd7d4c51a3d0bb046acb29ad96ca2b5f76f55b /docs/documentation_best_practices.md
parentea8df568f23b79eba13ef9e914d8b1ce94688858 (diff)
downloadqmk_firmware-d8e29b53fe5d57f2102b77f0ce9932cdb8b021b2.tar.gz
qmk_firmware-d8e29b53fe5d57f2102b77f0ce9932cdb8b021b2.zip
Update a bunch of docs
Diffstat (limited to 'docs/documentation_best_practices.md')
-rw-r--r--docs/documentation_best_practices.md39
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/documentation_best_practices.md b/docs/documentation_best_practices.md
new file mode 100644
index 000000000..1c06387f7
--- /dev/null
+++ b/docs/documentation_best_practices.md
@@ -0,0 +1,39 @@
1# Documentation Best Practices
2
3This page exists to document best practices when writing documentation for QMK. Following these guidelines will help to keep a consistent tone and style, which will in turn help other people more easily understand QMK.
4
5# Page Opening
6
7Your documentation page should generally start with an H1 heading, followed by a 1 paragrah description of what the user will find on this page. Keep in mind that this heading and paragraph will sit next to the Table of Contents, so keep the heading short and avoid long strings with no whitespace.
8
9Example:
10
11```
12# My Page Title
13
14This page covers my super cool feature. You can use this feature to make coffee, squeeze fresh oj, and have an egg mcmuffin and hashbrowns delivered from your local macca's by drone.
15```
16
17# Headings
18
19Your page should generally have multiple "H1" headings. Only H1 and H2 headings will included in the Table of Contents, so plan them out appropriately. Excess width should be avoided in H1 and H2 headings to prevent the Table of Contents from getting too wide.
20
21# Styled Hint Blocks
22
23You can have styled hint blocks drawn around text to draw attention to it.
24
25{% hint style='info' %}
26This uses \{\% hint style='info' \%\}
27{% endhint %}
28
29{% hint style='tip' %}
30This uses \{\% hint style='tip' \%\}
31{% endhint %}
32
33{% hint style='danger' %}
34This uses \{\% hint style='danger' \%\}
35{% endhint %}
36
37{% hint style='working' %}
38This uses \{\% hint style='working' \%\}
39{% endhint %}