Skip to content

Commit

Permalink
remove weight and hidechildren flag from all templates and generated …
Browse files Browse the repository at this point in the history
…files, move index template file into templates folder

Signed-off-by: Moritz Wiesinger <[email protected]>
  • Loading branch information
mowies committed Feb 21, 2023
1 parent 4b6aed8 commit 7d47cf8
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/generate-crd-docs/generate-crd-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ for api_group in "$API_ROOT"*; do
# Use sanitized_api_group and make first char uppercase
API_GROUP="$(tr '[:lower:]' '[:upper:]' <<< "${sanitized_api_group:0:1}")${sanitized_api_group:1}"
export API_GROUP
envsubst < './.github/scripts/generate-crd-docs/index-template.md' > "$INDEX_PATH"
envsubst < './.github/scripts/generate-crd-docs/templates/index-template.md' > "$INDEX_PATH"
unset API_GROUP
fi

Expand Down
6 changes: 0 additions & 6 deletions .github/scripts/generate-crd-docs/index-template.md

This file was deleted.

2 changes: 0 additions & 2 deletions .github/scripts/generate-crd-docs/templates/gv_list.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
---
title: {{ $groupVersion.Version }}
description: Reference information for {{ $groupVersion.GroupVersionString }}
weight: 100
hidechildren: false # this flag hides all sub-pages in the sidebar-multicard.html
---
<!-- markdownlint-disable -->

Expand Down
4 changes: 4 additions & 0 deletions .github/scripts/generate-crd-docs/templates/index-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: $API_GROUP API
description: Reference information about the $API_GROUP API
---
2 changes: 0 additions & 2 deletions docs/content/en/docs/crd-ref/lifecycle/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: Lifecycle API
description: Reference information about the Lifecycle API
weight: 100
hidechildren: false # this flag hides all sub-pages in the sidebar-multicard.html
---
2 changes: 0 additions & 2 deletions docs/content/en/docs/crd-ref/lifecycle/v1alpha1/_index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: v1alpha1
description: Reference information for lifecycle.keptn.sh/v1alpha1
weight: 100
hidechildren: false # this flag hides all sub-pages in the sidebar-multicard.html
---
<!-- markdownlint-disable -->

Expand Down
2 changes: 0 additions & 2 deletions docs/content/en/docs/crd-ref/lifecycle/v1alpha2/_index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: v1alpha2
description: Reference information for lifecycle.keptn.sh/v1alpha2
weight: 100
hidechildren: false # this flag hides all sub-pages in the sidebar-multicard.html
---
<!-- markdownlint-disable -->

Expand Down
2 changes: 0 additions & 2 deletions docs/content/en/docs/crd-ref/metrics/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: Metrics API
description: Reference information about the Metrics API
weight: 100
hidechildren: false # this flag hides all sub-pages in the sidebar-multicard.html
---
2 changes: 0 additions & 2 deletions docs/content/en/docs/crd-ref/metrics/v1alpha1/_index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: v1alpha1
description: Reference information for metrics.keptn.sh/v1alpha1
weight: 100
hidechildren: false # this flag hides all sub-pages in the sidebar-multicard.html
---
<!-- markdownlint-disable -->

Expand Down
2 changes: 0 additions & 2 deletions docs/content/en/docs/crd-ref/options/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: Options API
description: Reference information about the Options API
weight: 100
hidechildren: false # this flag hides all sub-pages in the sidebar-multicard.html
---
2 changes: 0 additions & 2 deletions docs/content/en/docs/crd-ref/options/v1alpha1/_index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: v1alpha1
description: Reference information for options.keptn.sh/v1alpha1
weight: 100
hidechildren: false # this flag hides all sub-pages in the sidebar-multicard.html
---
<!-- markdownlint-disable -->

Expand Down

0 comments on commit 7d47cf8

Please sign in to comment.