copy docks to website pathing fix

This commit is contained in:
Kjeld Schouten
2026-04-17 21:48:13 +02:00
parent 338fa567e7
commit 419bc9cd8c
+7 -7
View File
@@ -208,16 +208,16 @@ jobs:
forgetool charts genchartlist ./charts
mv -f charts.json website/truecharts/src/assets/charts.json
mv -f ./website/truecharts/src/content/docs/truetech/truecharts/charts/description-list.mdx ./description-list.mdx
mv -f ./website/truecharts/src/content/docs/charts/description-list.mdx ./description-list.mdx
echo "Copying changelogs to docs"
rm -rf ./website/truecharts/src/content/docs/truetech/truecharts/charts/stable ./website/truecharts/src/content/docs/truetech/truecharts/charts/incubator ./website/truecharts/src/content/docs/truetech/truecharts/charts/library
mkdir -p ./website/truecharts/src/content/docs/truetech/truecharts/charts/
mv -f ./description-list.mdx ./website/truecharts/src/content/docs/truetech/truecharts/charts/description-list.mdx
rm -rf ./website/truecharts/src/content/docs/charts/stable ./website/truecharts/src/content/docs/charts/incubator ./website/truecharts/src/content/docs/charts/library
mkdir -p ./website/truecharts/src/content/docs/charts/
mv -f ./description-list.mdx ./website/truecharts/src/content/docs/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/truecharts/src/content/docs/truetech/truecharts/charts/
cp -r ./changelogs/** ./website/truecharts/src/content/docs/charts/
else
echo "No directories in ./changelogs. Skipping copy."
fi
@@ -231,8 +231,8 @@ jobs:
IFS='/' read -r -a chart_parts <<<"$item"
./.github/scripts/chart-docs.sh "${chart_parts[1]}/${chart_parts[2]}"
done
rm -rf ./website/truecharts/src/content/docs/truetech/truecharts-common
mv ./website/truecharts/src/content/docs/truetech/truecharts/charts/library/common ./website/truecharts/src/content/docs/truetech/truecharts-common
rm -rf ./website/truecharts/src/content/docs-common
mv ./website/truecharts/src/content/docs/charts/library/common ./website/truecharts/src/content/docs-common
- name: Prefetch contributor icons
shell: bash