docs: enable syntax highlighting for module options

This commit is contained in:
Bryton Hall 2023-05-25 02:47:43 -04:00
parent 32f3ed1aa2
commit cb61efe123
2 changed files with 5 additions and 7 deletions

View file

@ -64,18 +64,16 @@ details {
margin: 0 !important;
tr {
// fix "extra" line at beginning of code blocks
pre code {
display: block;
}
// make code blocks a little smaller
pre {
margin: 0 !important;
padding: 0.2rem !important;
&.highlight {
color: $foreground-color;
background-color: $background-color;
};
code {
vertical-align: text-bottom;
padding-left: 0.2rem !important;
}
}

View file

@ -7,4 +7,4 @@
{{ $text = $text | jsonify (dict "indent" " ") }}
{{ end }}
<pre class="highlight"><code>{{ $text }}</code></pre>
{{- transform.Highlight $text "nix" }}