Content Styling
5 minute read.
Last Modified 2022-11-18 12:21 -0500This guide has many examples of how to style your documentation contributions. TrueNAS documentation uses standardized Markdown, HTML, and Hugo syntax to transform text, add images, and link to other locations. The guide is not exhaustive, but contains examples of the elements that are most commonly used when writing TrueNAS documentation. To learn more about each markup language, see these resources:
- Markdown: https://daringfireball.net/projects/markdown
- CommonMark: https://spec.commonmark.org/
- HTML: https://www.w3schools.com/html/default.asp
- Hugo: https://gohugo.io/documentation/
There are a number of style elements you can use that are built into the Hugo static site generator. This site uses Hugo shortcode syntax for images, internal references, and admonition boxes.
The documentation website also uses the Docsy theme. This theme has some additional styling elements that can be used to enhance your article. See the Docsy shortcodes guide for a list of built-in reusable content snippets.
= <i class="fa fa-ellipsis-v" aria-hidden="true" title="Options"></i>
= <i class="fa fa-cog" aria-hidden="true" title="Settings"></i>
= <i class="fa fa-pencil" aria-hidden="true" title="Pencil"></i>
= <i class="fa fa-bell" aria-hidden="true" title="Alert"></i>
= <i class="fa fa-trash" aria-hidden="true" title="Delete"></i>
= <i class="fa fa-eye" aria-hidden="true" title="eye"></i>
= <i class="fa fa-bars" aria-hidden="true" title="Menu"></i>
system_update_alt = <i class="material-icons" aria-hidden="true" title="System Update">system_update_alt</i>
When a specific key or key combination is to be used, use the <kbd>
HTML code to highlight the keystrokes. Here are a few examples:
Ctrl + C = <kbd>Ctrl + C</kbd>
Delete = <kbd>Delete</kbd>
Command+c = <kbd>Command+c</kbd>
Shift+Insert = <kbd>Shift+Insert</kbd>