From caa8235c9cdcd3bbcdd2c800a276369f67fe1ce3 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Wed, 15 Oct 2025 21:26:26 +0200 Subject: [PATCH] move docs to truetech --- .github/scripts/chart-docs.sh | 6 +++--- .github/workflows/charts-release.yaml | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/scripts/chart-docs.sh b/.github/scripts/chart-docs.sh index c03feda585d..1004c31730e 100755 --- a/.github/scripts/chart-docs.sh +++ b/.github/scripts/chart-docs.sh @@ -2,8 +2,8 @@ [ "$DEBUG" == 'true' ] && set -x [ "$STRICT" == 'true' ] && set -e -docs_base="website/src/content/docs/truecharts/charts" -tmp_docs_base="tmpwebsite/src/content/docs/truecharts/charts" +docs_base="website/src/content/docs/truetech/truecharts/charts" +tmp_docs_base="tmpwebsite/src/content/docs/truetech/truecharts/charts" safe_docs=( "CHANGELOG.md" ) @@ -51,7 +51,7 @@ copy_new_docs() { local chart="$2" echo "copying new docs to website for ${chart}" - cp -rf charts/${train}/${chart}/docs/* website/src/content/docs/truecharts/charts/${train}/${chart}/ 2>/dev/null || : + cp -rf charts/${train}/${chart}/docs/* website/src/content/docs/truetech/truecharts/charts/${train}/${chart}/ 2>/dev/null || : cp -rf charts/${train}/${chart}/icon.webp website/public/img/hotlink-ok/chart-icons/${chart}.webp 2>/dev/null || : cp -rf charts/${train}/${chart}/icon-small.webp website/public/img/hotlink-ok/chart-icons-small/${chart}.webp 2>/dev/null || : cp -rf charts/${train}/${chart}/screenshots/* website/public/img/hotlink-ok/chart-screenshots/${chart}/ 2>/dev/null || : diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index 237ceb349b7..5b6ae541dfd 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -196,16 +196,16 @@ jobs: ./temp/clustertool charts genchartlist ./charts mv -f charts.json website/src/assets/charts.json - mv -f ./website/src/content/docs/truecharts/charts/description-list.mdx ./description-list.mdx + mv -f ./website/src/content/docs/truetech/truecharts/charts/description-list.mdx ./description-list.mdx echo "Copying changelogs to docs" - rm -rf ./website/src/content/docs/truecharts/charts/stable ./website/src/content/docs/truecharts/charts/incubator ./website/src/content/docs/truecharts/charts/library - mkdir -p ./website/src/content/docs/truecharts/charts/ - mv -f ./description-list.mdx ./website/src/content/docs/truecharts/charts/description-list.mdx + rm -rf ./website/src/content/docs/truetech/truecharts/charts/stable ./website/src/content/docs/truetech/truecharts/charts/incubator ./website/src/content/docs/truetech/truecharts/charts/library + mkdir -p ./website/src/content/docs/truetech/truecharts/charts/ + mv -f ./description-list.mdx ./website/src/content/docs/truetech/truecharts/charts/description-list.mdx mkdir -p ./changelogs # Check if there are any directories in changelogs if [ -n "$(find ./changelogs -mindepth 1 -type d)" ]; then - cp -r ./changelogs/** ./website/src/content/docs/truecharts/charts/ + cp -r ./changelogs/** ./website/src/content/docs/truetech/truecharts/charts/ else echo "No directories in ./changelogs. Skipping copy." fi @@ -219,8 +219,8 @@ jobs: IFS='/' read -r -a chart_parts <<<"$item" ./.github/scripts/chart-docs.sh "${chart_parts[1]}/${chart_parts[2]}" done - - mv ./website/src/content/docs/truecharts/charts/library/common ./website/src/content/docs/truecharts-common + rm -rf ./website/src/content/docs/truetech/truecharts-common + mv ./website/src/content/docs/truetech/truecharts/charts/library/common ./website/src/content/docs/truetech/truecharts-common - name: Prefetch contributor icons shell: bash