Edit the Docs
Information for working on these docs.
Extensions
This installation of MK Docs has several extensions enabled, as listed below.
Admonition
This extension enables callouts, or blocks of highlighted content. See also the Admonition Docs.
Options
- Default
- Custom
- Omitted
noteabstractinfotipsuccessquestionwarningfailuredangerbugexamplequote
- Static
- Collapsible
- Collapsible, default open
Examples
Toggle Me
Custom title, bug type, collapsible (default open).
Icons, Emoji
Full access to standard emoji — pretty simple, nice and easy
A full list of icons and emoji can be searched on the Icons, Emoji Documentation.
But Wait, There's FontAwesome
This extension also includes all the free Font Awesome icons.
Examples
:mechanical_arm::sparkles:-
:fontawesome-solid-wand-magic-sparkles: -
:fontawesome-solid-heart:{ .red }
Coloring FontAwesome Icons
In the last example above, the :fontawesome-solid-heart: is using an appended CSS class called red. In order for this to work, that class must be included in the docs CSS, located at ~/docs/styles/main.css.
SuperFences + Code Blocks
An extra beefy set of support libraries for including syntax-highlighted code blocks, including a copy to clipboard function. See also the Code Blocks Documentation.
Examples
Fenced Codeblock
The example below is using four customizations:
- Language Declaration, i.e.
py - Custom Block Title, i.e.
flying_circus.py - Line Numbers
- Highlighted Lines
Inline Code
Inline code snippets can also receive the proper highlighting.
Here we have a python function: range()
Tabbed + Content Tabs
Creates groups of tabs. See also the Content Tabs Documentation.
Example
Rendered Example
- Sed sagittis eleifend rutrum
- Donec vitae suscipit est
- Nulla tempor lobortis orci
- Sed sagittis eleifend rutrum
- Donec vitae suscipit est
- Nulla tempor lobortis orci
Required Markdown
Tasklist
Does just what it says, creates pretty-looking tasklists from basic markdown lists. See also the Tasklist Documentation.
Example
Rendered Example
- Lorem ipsum dolor sit amet, consectetur adipiscing elit
- Vestibulum convallis sit amet nisi a tincidunt
- In hac habitasse platea dictumst
- In scelerisque nibh non dolor mollis congue sed et metus
- Praesent sed risus massa
- Aenean pretium efficitur erat, donec pharetra, ligula non scelerisque
Required Markdown
Buttons
Makes nice buttons, using FontAwesome and utility classes.