diff --git a/content/en/flux/components/kustomize/.gitignore b/content/en/flux/components/kustomize/.gitignore index 86bb6f59d..db062c043 100644 --- a/content/en/flux/components/kustomize/.gitignore +++ b/content/en/flux/components/kustomize/.gitignore @@ -1,2 +1,2 @@ -api.md +api/v*.md kustomization.md diff --git a/content/en/flux/components/kustomize/api/_index.md b/content/en/flux/components/kustomize/api/_index.md new file mode 100644 index 000000000..ea8b91346 --- /dev/null +++ b/content/en/flux/components/kustomize/api/_index.md @@ -0,0 +1,5 @@ +--- +title: API Reference +linkTitle: API Reference +weight: 1000 +--- diff --git a/content/en/flux/components/kustomize/options.md b/content/en/flux/components/kustomize/options.md index bb0137806..629998beb 100644 --- a/content/en/flux/components/kustomize/options.md +++ b/content/en/flux/components/kustomize/options.md @@ -2,7 +2,7 @@ title: Controller Options linkTitle: Controller Options description: "Controller command flags and defaults." -weight: 1000 +weight: 1 --- To customise the controller options at install time, diff --git a/content/en/flux/components/notification/.gitignore b/content/en/flux/components/notification/.gitignore index c342f3c11..772e150e5 100644 --- a/content/en/flux/components/notification/.gitignore +++ b/content/en/flux/components/notification/.gitignore @@ -1,5 +1,5 @@ alert.md -api.md +api/v*.md event.md provider.md receiver.md diff --git a/content/en/flux/components/notification/api/.gitkeep b/content/en/flux/components/notification/api/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/content/en/flux/components/notification/api/_index.md b/content/en/flux/components/notification/api/_index.md new file mode 100644 index 000000000..ea8b91346 --- /dev/null +++ b/content/en/flux/components/notification/api/_index.md @@ -0,0 +1,5 @@ +--- +title: API Reference +linkTitle: API Reference +weight: 1000 +--- diff --git a/content/en/flux/components/notification/options.md b/content/en/flux/components/notification/options.md index dc491d994..9fd3e0944 100644 --- a/content/en/flux/components/notification/options.md +++ b/content/en/flux/components/notification/options.md @@ -2,7 +2,7 @@ title: Controller Options linkTitle: Controller Options description: "Controller command flags and defaults." -weight: 1000 +weight: 1 --- To customise the controller options at install time, diff --git a/content/en/flux/components/source/.gitignore b/content/en/flux/components/source/.gitignore index e94c253f5..2c59c505b 100644 --- a/content/en/flux/components/source/.gitignore +++ b/content/en/flux/components/source/.gitignore @@ -1,4 +1,4 @@ -api.md +api/v*.md buckets.md gitrepositories.md helmcharts.md diff --git a/content/en/flux/components/source/api/_index.md b/content/en/flux/components/source/api/_index.md new file mode 100644 index 000000000..ea8b91346 --- /dev/null +++ b/content/en/flux/components/source/api/_index.md @@ -0,0 +1,5 @@ +--- +title: API Reference +linkTitle: API Reference +weight: 1000 +--- diff --git a/content/en/flux/components/source/options.md b/content/en/flux/components/source/options.md index 440686534..b187d2a40 100644 --- a/content/en/flux/components/source/options.md +++ b/content/en/flux/components/source/options.md @@ -2,7 +2,7 @@ title: Controller Options linkTitle: Controller Options description: "Controller command flags and defaults." -weight: 1000 +weight: 1 --- To customise the controller options at install time, diff --git a/hack/import-flux2-assets.sh b/hack/import-flux2-assets.sh index 8510dd4d9..3fa44a0df 100755 --- a/hack/import-flux2-assets.sh +++ b/hack/import-flux2-assets.sh @@ -66,7 +66,7 @@ controller_version() { cat /tmp/releases exit 1 fi - jq -r '.[] | .tag_name' < /tmp/releases | grep -v '^v1' | sort -V | tail -n 1 + jq -r '.[] | .tag_name' < /tmp/releases | sort -V | tail -n 1 } gen_crd_doc() { @@ -94,6 +94,11 @@ gen_crd_doc() { exit 1 fi + WEIGHT="$(grep -E '^$' "$TMP" | cut -d' ' -f2|cut -d':' -f2)" + if [ -z "${WEIGHT}" ] ; then + WEIGHT=0 + fi + if [ -n "$TITLE" ]; then { echo "---" @@ -103,6 +108,7 @@ gen_crd_doc() { if [ -n "$HUGETABLE" ]; then echo "hugeTable: true" fi + echo "weight: $WEIGHT" echo "---" } >> "$DEST" grep -vE "^