Fixed MacOS release (#3)
- Fixed MacOS release and moved UCL site into repository Reviewed-on: #3 Co-authored-by: Leon Mika <lmika@lmika.org> Co-committed-by: Leon Mika <lmika@lmika.org>
This commit is contained in:
parent
8dafa6fa8f
commit
bf879a8a78
58 changed files with 1930 additions and 102 deletions
62
_site/layouts/script-api/single.html
Normal file
62
_site/layouts/script-api/single.html
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{{ define "main" }}
|
||||
<article class="markdown">
|
||||
{{ partial "docs/post-meta" . }}
|
||||
{{- .Content -}}
|
||||
|
||||
<!-- API Data -->
|
||||
{{ range sort $.Site.Data.scriptmods }}
|
||||
<section>
|
||||
{{ if eq .type "type" }}
|
||||
<h2 id="type-{{.module}}">
|
||||
Type: {{ .module }}
|
||||
<a class="anchor" href="#type-{{.module}}">#</a>
|
||||
</h2>
|
||||
{{ else }}
|
||||
<h2 id="module-{{.module}}">
|
||||
Module: {{ .module }}
|
||||
<a class="anchor" href="#module-{{.module}}">#</a>
|
||||
</h2>
|
||||
{{ end }}
|
||||
|
||||
{{ $.RenderString .docs }}
|
||||
|
||||
{{ $moduleName := .module }}
|
||||
{{ range sort .symbols "name" }}
|
||||
<h3 id="{{$moduleName}}-{{.name}}">
|
||||
{{$moduleName}}.{{ .name }}
|
||||
<a class="anchor" href="#{{$moduleName}}-{{.name}}">#</a>
|
||||
</h3>
|
||||
<pre><code>{{ .syntax }}</code></pre>
|
||||
{{ $.RenderString .docs }}
|
||||
|
||||
{{if .example}}
|
||||
<h4>Example</h4>
|
||||
<pre><code>{{ .example }}</code></pre>
|
||||
{{end}}
|
||||
{{ end }}
|
||||
</section>
|
||||
{{end}}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
{{ define "toc" }}
|
||||
<nav id="TableOfContents">
|
||||
<ul>
|
||||
{{ range sort $.Site.Data.scriptmods }}
|
||||
{{ if eq .type "type" }}
|
||||
<li><a href="#type-{{.module}}">{{ .module }}</a></li>
|
||||
{{ else }}
|
||||
<li><a href="#module-{{.module}}">{{ .module }}</a></li>
|
||||
{{ end }}
|
||||
{{/*
|
||||
<ul>
|
||||
{{ $moduleName := .module }}
|
||||
{{ range sort .symbols "name" }}
|
||||
<li><a href="#{{$moduleName}}-{{.name}}">{{ .name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
*/}}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue