mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
Added tool to build example html Added book.json to bring in a couple plugins Added building_the_book.md to help with how to build things Updated gitignore with vscode and node modules Checking in initial version of code examples Copy/pasted a couple pages to get started on dev book Updated html template for dev book to support graph vis/copy icon/styles
18 lines
829 B
Plaintext
18 lines
829 B
Plaintext
{{$n := .Name}}
|
|
<div class="tab-wrap">
|
|
{{range .Languages}}
|
|
{{if .First}}
|
|
<input type="radio" id="{{$n}}_{{.Language}}" name="{{$n}}" class="tab" checked>
|
|
{{else}}
|
|
<input type="radio" id="{{$n}}_{{.Language}}" name="{{$n}}" class="tab">
|
|
{{end}}
|
|
<label for="{{$n}}_{{.Language}}" class="api-lang" data-language="{{.Language}}">{{.FormalName}}</label>
|
|
{{end}}
|
|
|
|
{{range .Languages}}
|
|
<div class="tab__content">
|
|
<pre id="{{$n}}_{{.Language}}_content"><a class="toolbar-icons pull-right" target="_blank" href="{{.RepoURL}}"><i class="mdi mdi-github-circle" title="View on GitHub"></i></a><a class="toolbar-icons pull-right"><i class="mdi mdi-content-copy js-copy" title="Copy to Clipboard"></i></a><span class="copy-msg pull-right"></span><code class="{{.SyntaxClass}}">{{.Content}}</code></pre>
|
|
</div>
|
|
{{end}}
|
|
</div>
|