mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 08:30:05 +01:00
create static docs site with module options
This commit is contained in:
parent
e3127e8c14
commit
e75b801a31
24 changed files with 448 additions and 19 deletions
10
docs/layouts/partials/highlight.html
Normal file
10
docs/layouts/partials/highlight.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{{ $text := . }}
|
||||
|
||||
{{/* if text is a multiline string add nix's double single-quotes */}}
|
||||
{{ if in $text "\n" }}
|
||||
{{ $text = print "''\n " (strings.TrimSuffix " " (replace $text "\n" "\n ") ) "''" }}
|
||||
{{ else }}
|
||||
{{ $text = jsonify $text }}
|
||||
{{ end }}
|
||||
|
||||
<pre class="highlight"><code>{{ $text }}</code></pre>
|
||||
Loading…
Add table
Add a link
Reference in a new issue