mirror of
https://github.com/truecharts/charts.git
synced 2026-07-04 23:41:23 -03:00
move docs to truetech
This commit is contained in:
6
.github/scripts/chart-docs.sh
vendored
6
.github/scripts/chart-docs.sh
vendored
@@ -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 || :
|
||||
|
||||
14
.github/workflows/charts-release.yaml
vendored
14
.github/workflows/charts-release.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user