mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2026-02-02 09:25:10 +01:00
add json formatting to docs
This commit is contained in:
parent
a2025cff43
commit
548188d3fa
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
{{ if in $text "\n" }}
|
{{ if in $text "\n" }}
|
||||||
{{ $text = print "''\n " (strings.TrimSuffix " " (replace $text "\n" "\n ") ) "''" }}
|
{{ $text = print "''\n " (strings.TrimSuffix " " (replace $text "\n" "\n ") ) "''" }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $text = jsonify $text }}
|
{{ $text = $text | jsonify (dict "indent" " ") }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<pre class="highlight"><code>{{ $text }}</code></pre>
|
<pre class="highlight"><code>{{ $text }}</code></pre>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue