truecharts/charts for chart docs
This commit is contained in:
@@ -196,16 +196,16 @@ jobs:
|
|||||||
|
|
||||||
./temp/clustertool charts genchartlist ./charts
|
./temp/clustertool charts genchartlist ./charts
|
||||||
mv -f charts.json website/src/assets/charts.json
|
mv -f charts.json website/src/assets/charts.json
|
||||||
mv -f ./website/src/content/docs/truecharts/description-list.mdx ./description-list.mdx
|
mv -f ./website/src/content/docs/truecharts/charts/description-list.mdx ./description-list.mdx
|
||||||
echo "Copying changelogs to docs"
|
echo "Copying changelogs to docs"
|
||||||
rm -rf ./website/src/content/docs/truecharts/stable ./website/src/content/docs/truecharts/incubator ./website/src/content/docs/truecharts/library
|
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/
|
mkdir -p ./website/src/content/docs/truecharts/charts/
|
||||||
mv -f ./description-list.mdx ./website/src/content/docs/truecharts/description-list.mdx
|
mv -f ./description-list.mdx ./website/src/content/docs/truecharts/charts/description-list.mdx
|
||||||
mkdir -p ./changelogs
|
mkdir -p ./changelogs
|
||||||
|
|
||||||
# Check if there are any directories in changelogs
|
# Check if there are any directories in changelogs
|
||||||
if [ -n "$(find ./changelogs -mindepth 1 -type d)" ]; then
|
if [ -n "$(find ./changelogs -mindepth 1 -type d)" ]; then
|
||||||
cp -r ./changelogs/** ./website/src/content/docs/truecharts/
|
cp -r ./changelogs/** ./website/src/content/docs/truecharts/charts/
|
||||||
else
|
else
|
||||||
echo "No directories in ./changelogs. Skipping copy."
|
echo "No directories in ./changelogs. Skipping copy."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user