Skip to content

Commit

Permalink
Merge pull request #563 from fluxcd/align-docs-layout
Browse files Browse the repository at this point in the history
Align docs structure with other controllers
  • Loading branch information
makkes authored Jul 29, 2023
2 parents 386d678 + cea79ca commit 205065a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ manifests: controller-gen ## Generate manifests e.g. CRD, RBAC etc.
cd api; $(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role paths="./..." output:crd:artifacts:config="../config/crd/bases"

api-docs: gen-crd-api-reference-docs ## Generate API reference documentation
$(GEN_CRD_API_REFERENCE_DOCS) -api-dir=./api/v1beta1 -config=./hack/api-docs/config.json -template-dir=./hack/api-docs/template -out-file=./docs/api/image-automation.md
$(GEN_CRD_API_REFERENCE_DOCS) -api-dir=./api/v1beta1 -config=./hack/api-docs/config.json -template-dir=./hack/api-docs/template -out-file=./docs/api/v1beta1/image-automation.md

tidy: ## Run go mod tidy
cd api; rm -f go.sum; go mod tidy -compat=1.20
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1>Image update automation API reference</h1>
<h1>Image update automation API reference v1beta1</h1>
<p>Packages:</p>
<ul class="simple">
<li>
Expand Down
2 changes: 2 additions & 0 deletions docs/spec/v1beta1/imageupdateautomations.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!-- -*- fill-column: 100 -*- -->
# Image Update Automations

<!-- menuweight:50 -->

The `ImageUpdateAutomation` type defines an automation process that will update a git repository,
based on image policy objects in the same namespace.

Expand Down
7 changes: 6 additions & 1 deletion hack/api-docs/template/pkg.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{ define "packages" }}
<h1>Image update automation API reference</h1>
<h1>Image update automation API reference
{{- with (index .packages 0) -}}
{{ with (index .GoPackages 0 ) -}}
{{ printf " %s" .Name -}}
{{ end -}}
{{ end }}</h1>

{{ with .packages}}
<p>Packages:</p>
Expand Down

0 comments on commit 205065a

Please sign in to comment.