diff --git a/.github/scripts/chart-docs.sh b/.github/scripts/chart-docs.sh index b7872e55dfb..efb800be43c 100755 --- a/.github/scripts/chart-docs.sh +++ b/.github/scripts/chart-docs.sh @@ -87,21 +87,23 @@ process_index() { echo -e "## Available Documentation\n" >>${index_path} echo "Iterating over all files in the docs directory..." - for file in website/src/content/docs/charts/${train}/${chart}/*.md*; do - echo "Checking file: ${file}" - filename=$(basename "${file}") + for f in website/src/content/docs/charts/${train}/${chart}/*.md*; do + echo "Checking file: ${f}" + filename=$(basename "${f}") # If title is not ok, skip - if ! check_and_fix_title "${file}"; then + if ! check_and_fix_title "${f}"; then + echo "Title is not ok, skipping..." continue fi # If file is index.md, skip if [ "${filename}" == "index.md" ]; then + echo "File is index.md, not adding it to the links" continue fi - title=$(go-yq --front-matter=process '.title' ${file} | head -n 1) + title=$(go-yq --front-matter=process '.title' ${f} | head -n 1) echo "The title is: ${title}" echo "Generating markdown links" diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index b2b277333ec..9fc392c6beb 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -114,11 +114,12 @@ jobs: export STRICT=true go-yq --version - ./.github/scripts/chart-docs.sh incubator/docuseal + ./.github/scripts/chart-docs.sh "incubator/docuseal" for i in "${CHARTS[@]}" do # TODO: Remove any changelog stuff from this script # TODO: Move all website docs structure generation to charttool + ./.github/scripts/chart-docs.sh "$i" done - name: Commit Website Changes diff --git a/charts/incubator/docuseal/Chart.yaml b/charts/incubator/docuseal/Chart.yaml index ac9f6fe11aa..c4e69d9c9c0 100644 --- a/charts/incubator/docuseal/Chart.yaml +++ b/charts/incubator/docuseal/Chart.yaml @@ -34,4 +34,4 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/incubator/docuseal - https://hub.docker.com/r/docuseal/docuseal type: application -version: 2.0.3 +version: 2.0.4 \ No newline at end of file