pkg.tpl 962 B

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