github.com/olli-ai/jx/v2@v2.0.400-0.20210921045218-14731b4dd448/docs/configdocs/templates/pkg.tpl (about) 1 {{ define "packages" }} 2 3 {{ with .packages}} 4 --- 5 title: Configuration Reference 6 linktitle: Reference 7 weight: 9 8 --- 9 10 <p>Packages:</p> 11 <ul> 12 {{ range . }} 13 <li> 14 <a href="#{{- packageAnchorID . -}}">{{ packageDisplayName . }}</a> 15 </li> 16 {{ end }} 17 </ul> 18 {{ end}} 19 20 {{ range .packages }} 21 <h2 id="{{- packageAnchorID . -}}"> 22 {{- packageDisplayName . -}} 23 </h2> 24 25 {{ with (index .GoPackages 0 )}} 26 {{ with .DocComments }} 27 <p> 28 {{ safe (renderComments .) }} 29 </p> 30 {{ end }} 31 {{ end }} 32 33 Resource Types: 34 <ul> 35 {{- range (visibleTypes (sortedTypes .Types)) -}} 36 {{ if isExportedType . -}} 37 <li> 38 <a href="{{ linkForType . }}">{{ typeDisplayName . }}</a> 39 </li> 40 {{- end }} 41 {{- end -}} 42 </ul> 43 44 {{ range (visibleTypes (sortedTypes .Types))}} 45 {{ template "type" . }} 46 {{ end }} 47 <hr/> 48 {{ end }} 49 50 <p><em> 51 Generated with <code>gen-crd-api-reference-docs</code> 52 {{ with .gitCommit }} on git commit <code>{{ . }}</code>{{end}}. 53 </em></p> 54 55 {{ end }}