diff --git a/.github/scripts/generate-crd-docs/generate-crd-docs.sh b/.github/scripts/generate-crd-docs/generate-crd-docs.sh index 54ff2b50ee..0ece82f6b3 100755 --- a/.github/scripts/generate-crd-docs/generate-crd-docs.sh +++ b/.github/scripts/generate-crd-docs/generate-crd-docs.sh @@ -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 diff --git a/.github/scripts/generate-crd-docs/index-template.md b/.github/scripts/generate-crd-docs/index-template.md deleted file mode 100644 index e5a495d12d..0000000000 --- a/.github/scripts/generate-crd-docs/index-template.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: $API_GROUP API -description: Reference information about the $API_GROUP API -weight: 100 -hidechildren: false # this flag hides all sub-pages in the sidebar-multicard.html ---- diff --git a/.github/scripts/generate-crd-docs/templates/gv_list.tpl b/.github/scripts/generate-crd-docs/templates/gv_list.tpl index 3f0492db51..41672983a8 100644 --- a/.github/scripts/generate-crd-docs/templates/gv_list.tpl +++ b/.github/scripts/generate-crd-docs/templates/gv_list.tpl @@ -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 --- diff --git a/.github/scripts/generate-crd-docs/templates/index-template.md b/.github/scripts/generate-crd-docs/templates/index-template.md new file mode 100644 index 0000000000..39ec23d245 --- /dev/null +++ b/.github/scripts/generate-crd-docs/templates/index-template.md @@ -0,0 +1,4 @@ +--- +title: $API_GROUP API +description: Reference information about the $API_GROUP API +--- diff --git a/docs/content/en/docs/crd-ref/lifecycle/_index.md b/docs/content/en/docs/crd-ref/lifecycle/_index.md index eb4a57e749..c0fcb3d795 100644 --- a/docs/content/en/docs/crd-ref/lifecycle/_index.md +++ b/docs/content/en/docs/crd-ref/lifecycle/_index.md @@ -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 --- diff --git a/docs/content/en/docs/crd-ref/lifecycle/v1alpha1/_index.md b/docs/content/en/docs/crd-ref/lifecycle/v1alpha1/_index.md index 7ed60c3ccf..8fbfb15470 100644 --- a/docs/content/en/docs/crd-ref/lifecycle/v1alpha1/_index.md +++ b/docs/content/en/docs/crd-ref/lifecycle/v1alpha1/_index.md @@ -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 --- diff --git a/docs/content/en/docs/crd-ref/lifecycle/v1alpha2/_index.md b/docs/content/en/docs/crd-ref/lifecycle/v1alpha2/_index.md index 4a4f91ecb2..4bbf82a291 100644 --- a/docs/content/en/docs/crd-ref/lifecycle/v1alpha2/_index.md +++ b/docs/content/en/docs/crd-ref/lifecycle/v1alpha2/_index.md @@ -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 --- diff --git a/docs/content/en/docs/crd-ref/metrics/_index.md b/docs/content/en/docs/crd-ref/metrics/_index.md index 49c9e6d8c4..38c47f116b 100644 --- a/docs/content/en/docs/crd-ref/metrics/_index.md +++ b/docs/content/en/docs/crd-ref/metrics/_index.md @@ -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 --- diff --git a/docs/content/en/docs/crd-ref/metrics/v1alpha1/_index.md b/docs/content/en/docs/crd-ref/metrics/v1alpha1/_index.md index 90c102653a..6aecfc3392 100644 --- a/docs/content/en/docs/crd-ref/metrics/v1alpha1/_index.md +++ b/docs/content/en/docs/crd-ref/metrics/v1alpha1/_index.md @@ -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 --- diff --git a/docs/content/en/docs/crd-ref/options/_index.md b/docs/content/en/docs/crd-ref/options/_index.md index cdd38f2b1e..1cabd0381d 100644 --- a/docs/content/en/docs/crd-ref/options/_index.md +++ b/docs/content/en/docs/crd-ref/options/_index.md @@ -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 --- diff --git a/docs/content/en/docs/crd-ref/options/v1alpha1/_index.md b/docs/content/en/docs/crd-ref/options/v1alpha1/_index.md index d83f7d055b..aac8099d8e 100644 --- a/docs/content/en/docs/crd-ref/options/v1alpha1/_index.md +++ b/docs/content/en/docs/crd-ref/options/v1alpha1/_index.md @@ -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 ---