mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-11 23:50:06 +01:00
docs: enable syntax highlighting for module options
This commit is contained in:
parent
32f3ed1aa2
commit
cb61efe123
2 changed files with 5 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@
|
|||
{{ $text = $text | jsonify (dict "indent" " ") }}
|
||||
{{ end }}
|
||||
|
||||
<pre class="highlight"><code>{{ $text }}</code></pre>
|
||||
{{- transform.Highlight $text "nix" }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue