docs(ci): prepare deployment to cloudflare
Some checks failed
Deploy Sphinx Docs / build-and-deploy (push) Has been cancelled

This commit is contained in:
2026-02-10 16:15:29 +08:00
parent 7aa947fce0
commit 73be4ed075
2 changed files with 55 additions and 0 deletions

11
docs/build_docs.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
LANG_CODE=$1
if [ -n "$LANG_CODE" ]; then
echo "Building docs for language: $LANG_CODE..."
sphinx-build -b html source/ "build/html_$LANG_CODE/" -D language="$LANG_CODE"
else
echo "Building docs in English (en_US)..."
sphinx-build -b html source build/html
fi