Commit Graph

12 Commits

Author SHA1 Message Date
Andreas Jaeger cd956ce134 Update hacking for Python3
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
2020-03-30 12:01:30 +00:00
Stephen Finucane 31ca35d832 Make 'docstheme-build-pdf' executable
Just because the other scripts in 'bin' are doing it.

Change-Id: Ic2fdb31aed51ecdceb36686b82338c28a2cdb066
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-06-19 17:09:00 +01:00
Stephen Finucane 9b798ec9a2 Add 'docstheme-build-pdf' script
Change-Id: Iad7b329272fedb314db8d70f6ec38e85eb495b14
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-06-13 16:44:39 +01:00
Zuul 466cb878f8 Merge "Update for OpenDev change" 2019-04-23 14:59:59 +00:00
Andreas Jaeger 2d76fd9cff Update for OpenDev change
Use the new OpenDev URLs everywhere, follow move of repositories.

Change-Id: I3dd8c6deff91c4cc3b8958977e73f371bdeb82a0
2019-04-21 14:27:39 +00:00
Frank Kloeker d63035e13d Prevent InvocationError on non-existent files
exit code for the function will be 1 if the previous command failed
if/then condition intercepts that

Change-Id: Icf43e72c65e6c63d95aef8d289b689a200d1eaeb
2019-04-21 00:15:43 +02:00
Andreas Jaeger 5dd66b6dd6 Fix wrong variable in build-translated
We initialized the wrong variable, fix this.

Change-Id: I78c1bc67e318adb8af92b81549fc548b27df8bd8
2019-02-03 16:50:11 +01:00
Eric Fried 0b86d24dbd Exit trap cleanup in docstheme-build-translated.sh
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
2019-01-31 11:31:44 -06:00
Zuul e6576b1eea Merge "Add options for sphinx-build -W in docstheme-build-translated.sh" 2019-01-17 07:15:20 +00:00
Frank Kloeker 899a36e341 Add options for sphinx-build -W in docstheme-build-translated.sh
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
2019-01-03 15:04:58 +01:00
Andreas Jaeger 7a5142b7c2 Translations: Handle directories
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>
2018-12-11 08:50:16 +01:00
Andreas Jaeger 0948c2dc65 Import tools for building translated documents
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
2018-11-24 18:41:11 +01:00