diff options
| author | skullY <skullydazed@gmail.com> | 2017-07-08 22:39:17 -0700 |
|---|---|---|
| committer | skullY <skullydazed@gmail.com> | 2017-07-08 22:39:17 -0700 |
| commit | 4c7c7747a3a4f4abea3bdaf73e37edd42cfb6446 (patch) | |
| tree | 59ba4c6d8db846e348e2c414c7738ec6ff494d50 /docs/documentation_best_practices.md | |
| parent | 5810bb67e4280582ef2811a7246f90d5f0bf292d (diff) | |
| download | qmk_firmware-4c7c7747a3a4f4abea3bdaf73e37edd42cfb6446.tar.gz qmk_firmware-4c7c7747a3a4f4abea3bdaf73e37edd42cfb6446.zip | |
Add terminal examples to doc best practices
Diffstat (limited to 'docs/documentation_best_practices.md')
| -rw-r--r-- | docs/documentation_best_practices.md | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/docs/documentation_best_practices.md b/docs/documentation_best_practices.md index 8c5b4795a..f30793181 100644 --- a/docs/documentation_best_practices.md +++ b/docs/documentation_best_practices.md | |||
| @@ -22,6 +22,14 @@ Your page should generally have multiple "H1" headings. Only H1 and H2 headings | |||
| 22 | 22 | ||
| 23 | You can have styled hint blocks drawn around text to draw attention to it. | 23 | You can have styled hint blocks drawn around text to draw attention to it. |
| 24 | 24 | ||
| 25 | ``` | ||
| 26 | {% hint style='info' %} | ||
| 27 | This uses `hint style='info'` | ||
| 28 | {% endhint %} | ||
| 29 | ``` | ||
| 30 | |||
| 31 | ### Examples: | ||
| 32 | |||
| 25 | {% hint style='info' %} | 33 | {% hint style='info' %} |
| 26 | This uses `hint style='info'` | 34 | This uses `hint style='info'` |
| 27 | {% endhint %} | 35 | {% endhint %} |
| @@ -37,3 +45,33 @@ This uses `hint style='danger'` | |||
| 37 | {% hint style='working' %} | 45 | {% hint style='working' %} |
| 38 | This uses `hint style='working'` | 46 | This uses `hint style='working'` |
| 39 | {% endhint %} | 47 | {% endhint %} |
| 48 | |||
| 49 | # Styled Terminal Blocks | ||
| 50 | |||
| 51 | You can present styled terminal blocks by including special tokens inside your text block. | ||
| 52 | |||
| 53 | ``` | ||
| 54 | \`\`\` | ||
| 55 | **[terminal] | ||
| 56 | **[prompt foo@joe]**[path ~]**[delimiter $ ]**[command ./myscript] | ||
| 57 | Normal output line. Nothing special here... | ||
| 58 | But... | ||
| 59 | You can add some colors. What about a warning message? | ||
| 60 | **[warning [WARNING] The color depends on the theme. Could look normal too] | ||
| 61 | What about an error message? | ||
| 62 | **[error [ERROR] This is not the error you are looking for] | ||
| 63 | \`\`\` | ||
| 64 | ``` | ||
| 65 | |||
| 66 | ### Example | ||
| 67 | |||
| 68 | ``` | ||
| 69 | **[terminal] | ||
| 70 | **[prompt foo@joe]**[path ~]**[delimiter $ ]**[command ./myscript] | ||
| 71 | Normal output line. Nothing special here... | ||
| 72 | But... | ||
| 73 | You can add some colors. What about a warning message? | ||
| 74 | **[warning [WARNING] The color depends on the theme. Could look normal too] | ||
| 75 | What about an error message? | ||
| 76 | **[error [ERROR] This is not the error you are looking for] | ||
| 77 | ``` | ||
