summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMatthew Oliver <matt@oliver.net.au>2019-09-04 14:30:33 +1000
committerTim Burke <tim.burke@gmail.com>2019-10-01 15:47:11 -0700
commit0217b12b6d7d6f3727a54db65614ff1ef52d6286 (patch)
tree7f9cf9bbb589a3147eafee11416a797c13eb42a1 /tox.ini
parent4bd900322169958dd3cccf006dc24110b046528d (diff)
downloadswift-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.ini9
1 files changed, 9 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 7d25a6acd..8b559380d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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