2018-04-26 16:12:08 +00:00
|
|
|
#!/bin/bash -eux
|
2022-04-26 12:04:02 +00:00
|
|
|
# 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
|
2022-03-21 11:01:29 +00:00
|
|
|
poetry run sphinx-multiversion . $BUILD_PATH
|
2022-04-26 12:04:02 +00:00
|
|
|
for d in $(ls locales); do
|
|
|
|
if [[ $d != "gettext" ]]; then
|
|
|
|
poetry run sphinx-multiversion -D language="$d" . $BUILD_PATH/$d
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# Build swagger
|
2018-04-26 16:12:08 +00:00
|
|
|
TARGET_PATH="$BUILD_PATH/swagger" ./build_swagger.sh
|
2019-04-01 09:36:13 +00:00
|
|
|
python ./get-releases-json.py > $BUILD_PATH/releases.json
|
2019-08-23 07:47:20 +00:00
|
|
|
python ./get-releases-json.py --latest > $BUILD_PATH/latest.txt
|