test agian

This commit is contained in:
Stavros Kois
2024-06-09 13:35:13 +03:00
committed by GitHub
parent 2297f72a25
commit dab93abd54
3 changed files with 10 additions and 7 deletions
+7 -5
View File
@@ -87,21 +87,23 @@ process_index() {
echo -e "## Available Documentation\n" >>${index_path} echo -e "## Available Documentation\n" >>${index_path}
echo "Iterating over all files in the docs directory..." echo "Iterating over all files in the docs directory..."
for file in website/src/content/docs/charts/${train}/${chart}/*.md*; do for f in website/src/content/docs/charts/${train}/${chart}/*.md*; do
echo "Checking file: ${file}" echo "Checking file: ${f}"
filename=$(basename "${file}") filename=$(basename "${f}")
# If title is not ok, skip # 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 continue
fi fi
# If file is index.md, skip # If file is index.md, skip
if [ "${filename}" == "index.md" ]; then if [ "${filename}" == "index.md" ]; then
echo "File is index.md, not adding it to the links"
continue continue
fi 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 "The title is: ${title}"
echo "Generating markdown links" echo "Generating markdown links"
+2 -1
View File
@@ -114,11 +114,12 @@ jobs:
export STRICT=true export STRICT=true
go-yq --version go-yq --version
./.github/scripts/chart-docs.sh incubator/docuseal ./.github/scripts/chart-docs.sh "incubator/docuseal"
for i in "${CHARTS[@]}" for i in "${CHARTS[@]}"
do do
# TODO: Remove any changelog stuff from this script # TODO: Remove any changelog stuff from this script
# TODO: Move all website docs structure generation to charttool # TODO: Move all website docs structure generation to charttool
./.github/scripts/chart-docs.sh "$i"
done done
- name: Commit Website Changes - name: Commit Website Changes
+1 -1
View File
@@ -34,4 +34,4 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/docuseal - https://github.com/truecharts/charts/tree/master/charts/incubator/docuseal
- https://hub.docker.com/r/docuseal/docuseal - https://hub.docker.com/r/docuseal/docuseal
type: application type: application
version: 2.0.3 version: 2.0.4