Set build.sh to build docs for all locales, and enable English, Spanish, and Ukranian

This commit is contained in:
Micah Lee 2020-09-17 09:43:22 -07:00
parent 3bb0b2be79
commit 128052b8b7
195 changed files with 28616 additions and 287 deletions

View file

@ -3,8 +3,7 @@
VERSION=`cat ../share/version.txt`
# Supported locales
#LOCALES="ar ca zh_CN zh_TW da nl en fr de el is ga it ja nb fa pl pt_BR pt_PT ro ru sr@latin es sv te tr uk"
LOCALES="en es"
LOCALES="ar ca zh_CN zh_TW da nl en fr de el is ga it ja nb fa pl pt_BR pt_PT ro ru sr@latin es sv te tr uk"
# Generate English .po files
make gettext
@ -32,4 +31,4 @@ done
echo '<html><head><meta http-equiv="refresh" content="0; url=en/" /><script>document.location="en/"</script></head></html>' > build/docs/$VERSION/index.html
# Redirect to latest version
echo '<html><head><meta http-equiv="refresh" content="0; url='$VERSION'/en/" /><script>document.location="'$VERSION'/en/"</script></head></html>' > build/docs/index.html
echo '<html><head><meta http-equiv="refresh" content="0; url='$VERSION'/en/" /><script>document.location="'$VERSION'/en/"</script></head></html>' > build/docs/index.html