Multi lang docs
This commit is contained in:
parent
380858dfb2
commit
9045cbbd3f
155 changed files with 24615 additions and 8 deletions
|
|
@ -1,6 +1,24 @@
|
|||
#!/bin/bash -eux
|
||||
# Building sphinx and swagger docs
|
||||
# We clean up translations, only fully translated components are kept
|
||||
IFS=$'\n'
|
||||
|
||||
for i in $(poetry run sphinx-intl stat); do
|
||||
echo "$i"
|
||||
if [[ "$i" != *" 0 untranslated." ]]; then
|
||||
file=$(echo $i | cut -d: -f1)
|
||||
echo "delete $file"
|
||||
rm $file
|
||||
fi
|
||||
done
|
||||
# Build sphinx
|
||||
poetry run sphinx-multiversion . $BUILD_PATH
|
||||
for d in $(ls locales); do
|
||||
if [[ $d != "gettext" ]]; then
|
||||
poetry run sphinx-multiversion -D language="$d" . $BUILD_PATH/$d
|
||||
fi
|
||||
done
|
||||
|
||||
# Build swagger
|
||||
TARGET_PATH="$BUILD_PATH/swagger" ./build_swagger.sh
|
||||
python ./get-releases-json.py > $BUILD_PATH/releases.json
|
||||
python ./get-releases-json.py --latest > $BUILD_PATH/latest.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue