diff options
author | Akihiro Motoki <amotoki@gmail.com> | 2019-10-11 03:48:51 +0900 |
---|---|---|
committer | Akihiro Motoki <amotoki@gmail.com> | 2019-10-11 03:51:38 +0900 |
commit | 6c0e4d7a3940ba6d4d11d0c89933cc00b898ed9e (patch) | |
tree | 375c38166573f7ec0f6b2e0a689c29ca8a48171f /tox.ini | |
parent | 3f286e7d8c83f665cb00b32c7f9ccaa00f03e628 (diff) | |
download | python-novaclient-6c0e4d7a3940ba6d4d11d0c89933cc00b898ed9e.tar.gz |
PDF documentation build
Also reorganizes the document structure to match both HTML and PDF docs.
Story: 2006100
Task: 35143
Change-Id: Ie3f38e2ecf52e6a6cbd52bb36196e6f589f1ca0f
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -9,6 +9,7 @@ usedevelop = True whitelist_externals = find rm + make passenv = ZUUL_CACHE_DIR REQUIREMENTS_PIP_LOCATION install_command = pip install {opts} {packages} @@ -44,11 +45,20 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/doc/requirements.txt commands = - rm -rf doc/build + rm -rf doc/build/html doc/build/doctrees sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html # Test the redirects. This must run after the main docs build whereto doc/build/html/.htaccess doc/test/redirect-tests.txt +[testenv:pdf-docs] +basepython = python3 +envdir = {toxworkdir}/docs +deps = {[testenv:docs]deps} +commands = + rm -rf doc/build/pdf + sphinx-build -W -b latex doc/source doc/build/pdf + make -C doc/build/pdf + [testenv:releasenotes] basepython = python3 deps = |