cut down on trains and copy to truecharts instead of charts
This commit is contained in:
@@ -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/charts/description-list.mdx ./description-list.mdx
|
||||
mv -f ./website/src/content/docs/truecharts/description-list.mdx ./description-list.mdx
|
||||
echo "Copying changelogs to docs"
|
||||
rm -rf ./website/src/content/docs/charts/
|
||||
mkdir -p ./website/src/content/docs/charts/
|
||||
mv -f ./description-list.mdx ./website/src/content/docs/charts/description-list.mdx
|
||||
rm -rf ./website/src/content/docs/truecharts/stable ./website/src/content/docs/truecharts/incubator ./website/src/content/docs/truecharts/library
|
||||
mkdir -p ./website/src/content/docs/truecharts/
|
||||
mv -f ./description-list.mdx ./website/src/content/docs/truecharts/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/charts/
|
||||
cp -r ./changelogs/** ./website/src/content/docs/truecharts/
|
||||
else
|
||||
echo "No directories in ./changelogs. Skipping copy."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user