remove some more doc gen scripting in favor of forgetool
This commit is contained in:
@@ -75,7 +75,7 @@ jobs:
|
|||||||
| {tag: ., alpha: (capture("ALPHA(?<n>[0-9]+)$").n | tonumber)}
|
| {tag: ., alpha: (capture("ALPHA(?<n>[0-9]+)$").n | tonumber)}
|
||||||
] | if length > 0 then max_by(.alpha).tag else empty end' <<< "${RELEASES_JSON}")"
|
] | if length > 0 then max_by(.alpha).tag else empty end' <<< "${RELEASES_JSON}")"
|
||||||
fi
|
fi
|
||||||
[ -n "${TAG}" ] && [ "${TAG}" != "null" ] || TAG="v4.0.0-ALPHA24"
|
[ -n "${TAG}" ] && [ "${TAG}" != "null" ] || TAG="v4.0.0-ALPHA28"
|
||||||
VERSION="${TAG#v}"
|
VERSION="${TAG#v}"
|
||||||
VERSION="${VERSION#forgetool-v}"
|
VERSION="${VERSION#forgetool-v}"
|
||||||
case "$(uname -m)" in
|
case "$(uname -m)" in
|
||||||
@@ -201,26 +201,6 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "Maing sure directories exist..."
|
|
||||||
mkdir -p website/truecharts/public/img/hotlink-ok/chart-icons || echo "chart-icons path already exists, continuing..."
|
|
||||||
mkdir -p website/truecharts/public/img/hotlink-ok/chart-icons-small || echo "chart-icons-small path already exists, continuing..."
|
|
||||||
mkdir -p website/truecharts/src/assets || echo "assets path already exists, continuing..."
|
|
||||||
|
|
||||||
forgetool charts genchartlist ./charts
|
|
||||||
mv -f charts.json website/truecharts/src/assets/charts.json
|
|
||||||
mv -f ./website/truecharts/src/content/docs/charts/index.mdx ./index.mdx
|
|
||||||
echo "Copying changelogs to docs"
|
|
||||||
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 ./index.mdx ./website/truecharts/src/content/docs/charts/index.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/charts/
|
|
||||||
else
|
|
||||||
echo "No directories in ./changelogs. Skipping copy."
|
|
||||||
fi
|
|
||||||
|
|
||||||
forgetool charts gendocs --charts-dir ./charts --website-dir ./website
|
forgetool charts gendocs --charts-dir ./charts --website-dir ./website
|
||||||
rm -rf ./website/truecharts/src/content/docs-common
|
rm -rf ./website/truecharts/src/content/docs-common
|
||||||
|
|||||||
Reference in New Issue
Block a user