sigs.k8s.io/cluster-api-provider-aws@v1.5.5/docs/book/gen-crd-api-reference-docs/template/pkg.tpl (about) 1 2 {{ define "packages" }} 3 4 {{ with .packages}} 5 <p>Packages:</p> 6 <ul> 7 {{ range . }} 8 <li> 9 <a href="#{{- packageAnchorID . -}}">{{ packageDisplayName . }}</a> 10 </li> 11 {{ end }} 12 </ul> 13 {{ end}} 14 15 {{ range .packages }} 16 <h2 id="{{- packageAnchorID . -}}"> 17 {{- packageDisplayName . -}} 18 </h2> 19 20 {{ with (index .GoPackages 0 )}} 21 {{ with .DocComments }} 22 <p> 23 {{ safe (renderComments .) }} 24 </p> 25 {{ end }} 26 {{ end }} 27 28 Resource Types: 29 <ul> 30 {{- range (visibleTypes (sortedTypes .Types)) -}} 31 {{ if isExportedType . -}} 32 <li> 33 <a href="{{ linkForType . }}">{{ typeDisplayName . }}</a> 34 </li> 35 {{- end }} 36 {{- end -}} 37 </ul> 38 39 {{ range (visibleTypes (sortedTypes .Types))}} 40 {{ template "type" . }} 41 {{ end }} 42 <hr/> 43 {{ end }} 44 {{ end }}