CI: Fix docs publishing
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions

There's no more a need to fix up the docs structure, when build_docs already produces the correct directory structure.
This commit is contained in:
Simon Hausmann 2025-11-06 21:56:55 +01:00
parent 1278a6aeaf
commit fcc6364bd1

View file

@ -439,7 +439,7 @@ jobs:
else
version="development snapshot"
fi
sed -i "s/VERSION/$version/g" ../docs/slint/index.html
sed -i "s/VERSION/$version/g" ../docs/index.html
rm -rf $output_path/docs
mv ../docs .
@ -447,13 +447,6 @@ jobs:
# Fix up link to Slint language documentation
sed -i "s!https://slint.dev/releases/.*/docs/!../../!" $output_path/docs/rust/slint/*.html
mkdir -p $output_path/docs/node
cp -a ../api/node/docs/* $output_path/docs/node/
mkdir -p $output_path/docs/python
cp -a ../api/python/slint/docs/* $output_path/docs/python/
mkdir -p $output_path/docs/slint
cp -a ../docs/astro/dist/* $output_path/docs/slint/
- name: Adjust redirections
if: github.event.inputs.release == 'true'
run: |