diff options
author | Matthew Oliver <matt@oliver.net.au> | 2019-09-04 14:30:33 +1000 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2019-10-01 15:47:11 -0700 |
commit | 0217b12b6d7d6f3727a54db65614ff1ef52d6286 (patch) | |
tree | 7f9cf9bbb589a3147eafee11416a797c13eb42a1 /tox.ini | |
parent | 4bd900322169958dd3cccf006dc24110b046528d (diff) | |
download | swift-0217b12b6d7d6f3727a54db65614ff1ef52d6286.tar.gz |
PDF Documentation Build tox target
This patch adds a `pdf-docs` tox target that will build
PDF versions of our docs. As per the Train community goal:
https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html
Add sphinxcontrib-svg2pdfconverter to doc/requirements.txt
to convert our SVGs.
Story: 2006122
Task: 35515
Change-Id: I26cefda80d3234df68d7152b404e0a71da74ab90
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -149,3 +149,12 @@ deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt + +[testenv:pdf-docs] +basepython = python3 +deps = {[testenv:docs]deps} +whitelist_externals = + make +commands = + sphinx-build -W -b latex doc/source doc/build/pdf + make -C doc/build/pdf |