1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 07:57:07 +00:00
kyverno/docs/user/html/pkg.tpl
Srikanth Iyengar 63b03a8442
(docs) changed docs tool to kubernetes-sigs/reference-docs (#9212)
* (docs) updated gen-crd tool to reference-docs/genref

Signed-off-by: Srikanth Iyengar <ksrikanth3012@gmail.com>

* (docs) updated branch with recent docs

Signed-off-by: Srikanth Iyengar <ksrikanth3012@gmail.com>

* codegen

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* codegen

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* codegen

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* (docs) codegen

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* codegen

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Srikanth Iyengar <ksrikanth3012@gmail.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2024-02-04 13:57:00 +01:00

56 lines
1.8 KiB
Smarty

{{ define "packages" }}
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<style>
.bg-blue {
color: #ffffff;
background-color: #1589dd;
}
</style>
</head>
<body>
<div class="container">
{{ range .packages }}
{{/* Only display package that has a group name */}}
{{ if ne .GroupName "" }}
<h2 id="{{- .Anchor -}}">Package: <span style="font-family: monospace">{{- .DisplayName -}}</span></h2>
<p>{{ .GetComment }}</p>
{{ end }}
{{ end }}
{{ range .packages }}
{{ if ne .GroupName "" }}
{{/* TODO: Make the following line conditional */}}
<h3>Resource Types:</h3>
<ul>
{{- range .VisibleTypes -}}
{{ if .IsExported -}}
<li>
<a href="{{ .Link }}">{{ .DisplayName }}</a>
</li>
{{- end }}
{{- end -}}
</ul>
{{/* For package with a group name, list all type definitions in it. */}}
{{ range .VisibleTypes }}
{{- if or .Referenced .IsExported -}}
{{ template "type" . }}
{{- end -}}
{{ end }}
{{ else }}
{{/* For package without a group name, list only type definitions that are referenced. */}}
{{ range .VisibleTypes }}
{{ if .Referenced }}
{{ template "type" . }}
{{ end }}
{{ end }}
{{ end }}
<hr />
{{ end }}
</div>
</body>
</html>
{{ end }}