The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found by updated hacking version.
Change-Id: I881f5d020d0ea95afb0eab6828928bc386afc263
Just because the other scripts in 'bin' are doing it.
Change-Id: Ic2fdb31aed51ecdceb36686b82338c28a2cdb066
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
exit code for the function will be 1 if the previous command failed
if/then condition intercepts that
Change-Id: Icf43e72c65e6c63d95aef8d289b689a200d1eaeb
Add a catch-all `cleanup` exit trap to docstheme-build-translated.sh.
The script creates interim artifacts in doc/source (which it arguably
shouldn't do) like .pot files and .rst sources modified with index
headers pointing to translations. Previously, if the doc build failed,
these artifacts would be left behind, creating a mess for a developer
attempting to make and commit doc changes locally. This patch
accumulates the existing cleanups into an exit trap so they happen
whether the script succeeds or fails.
Developers of openstackdocstheme itself may disable this cleanup trap by
setting the DOCSTHEME_BUILD_TRANSLATED__NO_CLEANUP environment variable
to a nonempty value.
Change-Id: If48c5705c34f940e78e3a34e602e48496a397629
The user can choose
- if warnings should be ignored (SKIP_SPHINX_WARNINGS=1)
- if warnings on translation build should be on (SPHINX_WARNINGS_TRANS=1)
added an example to the previously releasenotes
Change-Id: I1486139fdbdef5dd4e00a38c9cb751a5ed7881c6
We need to handle translations of sub-directories the same way
they are handled in our scripts to push to the translation server,
update the code.
Change-Id: I501289767d273760b0a69d52d1a9dda867fc4e04
Co-Authored-By: Ian Y. Choi <ianyrchoi@gmail.com>
Import from i18n repo the scripts get-lang-display-name.py and
build-docs.sh, update comments so that they are generic.
Add the two files to setup.cfg so that they get distributed with the
package and can be executed from tox for building of translated
documents.
Change-Id: I80fcb1ed857da8452b310e6707cce3940577a35a