31 | {{ partial "sidebar.html" . }}
32 |
33 | {{ block "main" . }}{{ end }}
34 |
35 | {{ block "side" . }}{{ end }}
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/themes/hugo-docs/layouts/_default/section.searchindex.json:
--------------------------------------------------------------------------------
1 | [
2 | {{- range $index, $page := where .Site.Pages "Section" .Section -}}
3 | {{- if ne $index 0 -}} , {{- end -}}
4 | {{- $entry := (dict "url" $page.RelPermalink) -}}
5 | {{- if $page.Params.tags -}} {{- $entry = merge $entry (dict "section" (delimit $page.Params.tags ", ")) -}} {{- end -}}
6 | {{- $entry = merge $entry (dict "categories" $page.Params.categories) -}}
7 | {{- $entry = merge $entry (dict "title" $page.Title) -}}
8 | {{- $entry = merge $entry (dict "description" $page.Description) -}}
9 | {{- $entry = merge $entry (dict "body" ($page.Content | jsonify)) -}}
10 | {{- $entry | jsonify -}}
11 | {{- end -}}
12 | ]
13 |
--------------------------------------------------------------------------------
/themes/hugo-docs/layouts/_default/single.html:
--------------------------------------------------------------------------------
1 | {{ define "main" }}
2 |
3 |
4 | {{ .Title }}
5 | {{ if (ne (.Param "renderEditButton") false) }}
6 | {{ partial "edit-page.html" . }}
7 | {{ end }}
8 |
9 |
10 | {{ .Content }}
11 |
12 | {{ partial "footer.html" . }}
13 |
14 |
15 | {{ end }}
16 |
17 | {{ define "side" }}
18 | {{ if (ne (.Param "renderTOC") false) }}
19 |
3 |
4 | {{ .Title }}
5 | {{ if (ne (.Param "renderEditButton") false) }}
6 | {{ partial "edit-page.html" . }}
7 | {{ end }}
8 |
9 |
10 |
11 | {{ $page := .Page }}
12 | {{ range $endpoint := .Params.endpoints }}
13 | {{ partial "api-example-resource.html" (dict "page" $page "endpoint" $endpoint) }}
14 | {{ end }}
15 |
16 |
17 | {{ partial "footer.html" . }}
18 |
19 |
20 | {{ end }}
21 |
22 | {{ define "side" }}
23 | {{ if (ne (.Param "renderTOC") false) }}
24 |
3 |
18 |
19 |
20 | {{ .Title }}
21 | {{ if (ne (.Param "renderEditButton") false) }}
22 | {{ partial "edit-page.html" . }}
23 | {{ end }}
24 |
25 |
26 | {{ .Content }}
27 |
28 |
29 | {{ partial "footer.html" . }}
30 |
31 |
32 | {{ end }}
33 |
34 | {{ define "side" }}
35 | {{ if (ne (.Param "renderTOC") false) }}
36 |
6 |
7 | {{ .Title }}
8 | {{ if (ne (.Param "renderEditButton") false) }}
9 | {{ partial "edit-page.html" . }}
10 | {{ end }}
11 |
12 |
13 |
14 | {{ .Content }}
15 |
16 |
17 |
18 | {{ partial "footer.html" . }}
19 |
20 |
21 | {{ end }}
22 |
--------------------------------------------------------------------------------
/themes/hugo-docs/layouts/index.searchindex.json:
--------------------------------------------------------------------------------
1 | {{- $pages := .Site.AllPages -}}
2 | {{- $pages = where $pages "Params.hidden" "!=" true -}}
3 | {{- $pages = where $pages "Params.excludeFromSearch" "!=" true -}}
4 | [
5 | {{- range $index, $page := $pages -}}
6 | {{- $entry := (dict "url" $page.RelPermalink) -}}
7 | {{- $entry = merge $entry (dict "type" $page.Type) -}}
8 | {{- $entry = merge $entry (dict "section" $page.Section) -}}
9 | {{- $entry = merge $entry (dict "categories" $page.Params.categories) -}}
10 | {{- $entry = merge $entry (dict "keywords" $page.Params.keywords) -}}
11 | {{- $entry = merge $entry (dict "title" $page.Title) -}}
12 | {{- $entry = merge $entry (dict "description" ($page.Description | .Page.RenderString | plainify)) -}}
13 | {{- $entry = merge $entry (dict "body" ($page.Content | jsonify)) -}}
14 | {{- if ne $index 0 -}} , {{- end -}}
15 | {{- $entry | jsonify -}}
16 | {{- end -}}
17 | ]
18 |
--------------------------------------------------------------------------------
/themes/hugo-docs/layouts/partials/_api-endpoints.html:
--------------------------------------------------------------------------------
1 | {{ $versions := partial "_api-versions" $ }}
2 | {{ $endpoints := slice }}
3 | {{ $upcoming := slice }}
4 | {{ range where $versions "upcoming" "eq" true }}
5 | {{ $upcoming = $upcoming | append .version }}
6 | {{ end }}
7 |
8 | {{ range $key, $value := $.Site.Data.endpoints }}
9 | {{ if not $value.apiVersionConstraints }}
10 | {{ $value = merge $value (dict "apiVersionConstraints" (dict "neq" "beta")) }}
11 | {{ end }}
12 |
13 | {{ if not $.Site.BuildDrafts }}
14 | {{ $constraint := $value.apiVersionConstraints }}
15 | {{ if and $constraint.eq (in $upcoming $constraint.eq) }}{{ continue }}{{ end }}
16 | {{ if and $constraint.gt (in $upcoming $constraint.gt) }}{{ continue }}{{ end }}
17 | {{ if and $constraint.gte (in $upcoming $constraint.gte) }}{{ continue }}{{ end }}
18 | {{ end }}
19 |
20 | {{ $stat := os.Stat (printf "data/endpoints/%s.yaml" $key) }}
21 | {{ $endpoint := merge $value (dict "endpointId" (or $value.endpointId $key) "hidden" true "endpointFile" $key "osStat" $stat) }}
22 | {{ $endpoints = $endpoints | append $endpoint }}
23 | {{ end }}
24 |
25 | {{ return $endpoints }}
26 |
--------------------------------------------------------------------------------
/themes/hugo-docs/layouts/partials/_api-versions.html:
--------------------------------------------------------------------------------
1 | {{ $minimumVersion := partial "api-version-sequence" "2025-03" }}
2 | {{ $versions := slice }}
3 | {{ $versions = $versions | append (dict "release" "release-2025-01" "version" "v1" "sequence" 1 "upcoming" false) }}
4 | {{ $versions = $versions | append (dict "release" "release-2025-01" "version" "beta" "sequence" 2 "upcoming" false) }}
5 |
6 | {{ range (sort .Site.Data.releases "key" "desc") }}
7 | {{ $version := slicestr .key 8 }}
8 | {{ $sequence := partial "api-version-sequence" $version }}
9 | {{ if lt $sequence $minimumVersion }}{{ continue }}{{ end }}
10 |
11 | {{ $versions = $versions | append (dict "release" .key "version" $version "sequence" $sequence "upcoming" (eq .upcoming true)) }}
12 | {{ end }}
13 |
14 | {{ return (sort $versions "sequence" "desc") }}
15 |
--------------------------------------------------------------------------------
/themes/hugo-docs/layouts/partials/added-in.html:
--------------------------------------------------------------------------------
1 | {{- $href := print "/operations/releases/" .release "/" -}}
2 | {{- if .block -}}
3 |