mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2026-02-02 09:25:10 +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;
|
margin: 0 !important;
|
||||||
|
|
||||||
tr {
|
tr {
|
||||||
|
// fix "extra" line at beginning of code blocks
|
||||||
|
pre code {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
// make code blocks a little smaller
|
// make code blocks a little smaller
|
||||||
pre {
|
pre {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
padding: 0.2rem !important;
|
padding: 0.2rem !important;
|
||||||
|
|
||||||
&.highlight {
|
|
||||||
color: $foreground-color;
|
|
||||||
background-color: $background-color;
|
|
||||||
};
|
|
||||||
|
|
||||||
code {
|
code {
|
||||||
vertical-align: text-bottom;
|
|
||||||
padding-left: 0.2rem !important;
|
padding-left: 0.2rem !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,4 +7,4 @@
|
||||||
{{ $text = $text | jsonify (dict "indent" " ") }}
|
{{ $text = $text | jsonify (dict "indent" " ") }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<pre class="highlight"><code>{{ $text }}</code></pre>
|
{{- transform.Highlight $text "nix" }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue