aboutsummaryrefslogtreecommitdiff
path: root/docs/contributing.md
diff options
context:
space:
mode:
authorDusty Pomerleau <dustypomerleau@users.noreply.github.com>2019-03-08 07:30:02 +1100
committerDrashna Jaelre <drashna@live.com>2019-03-07 12:30:02 -0800
commit6d4f6f3f4965e3e71d878c36da71b745cc18e345 (patch)
tree4ee35d3c4df8369adf07863fbf4d1936c4452741 /docs/contributing.md
parentba11a1c8072fd5d2f2d2914e76e9416be9ca1e11 (diff)
downloadqmk_firmware-6d4f6f3f4965e3e71d878c36da71b745cc18e345.tar.gz
qmk_firmware-6d4f6f3f4965e3e71d878c36da71b745cc18e345.zip
[Docs] Add Tap Dance example to the docs (#5326)
* add a tapdance example for creating advanced mod-tap and layer-tap keys * add optional curly braces to match QMK conventions * change example to use `register_code16()` and tapdance keycodes more closely matching QMK variants
Diffstat (limited to 'docs/contributing.md')
-rw-r--r--docs/contributing.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/contributing.md b/docs/contributing.md
index 88b9d7d9b..15066185b 100644
--- a/docs/contributing.md
+++ b/docs/contributing.md
@@ -129,6 +129,20 @@ Documentation is one of the easiest ways to get started contributing to QMK. Fin
129 129
130You'll find all our documentation in the `qmk_firmware/docs` directory, or if you'd rather use a web based workflow you can click "Suggest An Edit" at the top of each page on http://docs.qmk.fm/. 130You'll find all our documentation in the `qmk_firmware/docs` directory, or if you'd rather use a web based workflow you can click "Suggest An Edit" at the top of each page on http://docs.qmk.fm/.
131 131
132When providing code examples in your documentation, try to observe naming conventions used elsewhere in the docs. For example, standardizing enums as `my_layers` or `my_keycodes` for consistency:
133
134```c
135enum my_layers {
136 _FIRST_LAYER,
137 _SECOND_LAYER
138};
139
140enum my_keycodes {
141 FIRST_LAYER = SAFE_RANGE,
142 SECOND_LAYER
143};
144```
145
132## Keymaps 146## Keymaps
133 147
134Most first-time QMK contributors start with their personal keymaps. We try to keep keymap standards pretty casual (keymaps, after all, reflect the personality of their creators) but we do ask that you follow these guidelines to make it easier for others to discover and learn from your keymap. 148Most first-time QMK contributors start with their personal keymaps. We try to keep keymap standards pretty casual (keymaps, after all, reflect the personality of their creators) but we do ask that you follow these guidelines to make it easier for others to discover and learn from your keymap.