Skip to content

Commit cf9105d

Browse files
committed
Update doc build to fail if there are warnings
Update the documentation build to use a tox environment and pass through pbr and to use the flag to have the build fail if there are any warnings. Fix existing warnings in the documentation by adding a glossary with two referenced terms and correcting a few other minor issues. Change-Id: I082d8d73debca891811fb2f0c1116f9bf5bee54e
1 parent 58c2459 commit cf9105d

File tree

7 files changed

+31
-3
lines changed

7 files changed

+31
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ sdist: html
1818
# Documentation
1919
.PHONY: html
2020
html:
21-
(cd docs && $(MAKE) html)
21+
tox -e docs
2222

2323
.PHONY: docclean
2424
docclean:

docs/source/command_ref.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ Syntax::
413413
Path Management
414414
===============
415415

416+
.. _command-add2virtualenv:
417+
416418
add2virtualenv
417419
--------------
418420

docs/source/glossary.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
==========
2+
Glossary
3+
==========
4+
5+
.. glossary::
6+
7+
project directory
8+
9+
Directory associated with a virtualenv, usually located elsewhere
10+
and containing more permanent development artifacts such as local
11+
source files, test data, etc. (see :ref:`variable-PROJECT_HOME`)
12+
13+
template
14+
15+
Input to :ref:`command-mkproject` that configures the *project
16+
directory* to contain default files. (see :ref:`plugins`)

docs/source/history.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,7 @@ run in the same place as before.
327327
- Implement suggestion by Van Lindberg to have
328328
:ref:`VIRTUALENVWRAPPER_HOOK_DIR
329329
<variable-VIRTUALENVWRAPPER_HOOK_DIR>` and
330-
:ref:`VIRTUALENVWRAPPER_LOG_DIR
331-
<variable-VIRTUALENVWRAPPER_LOG_DIR>` variables to control the
330+
``VIRTUALENVWRAPPER_LOG_DIR`` variables to control the
332331
locations of hooks and logs.
333332
- Enabled tab completion for :ref:`command-showvirtualenv`
334333
(:bbissue:`78`).

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ Details
181181
extensions
182182
design
183183
history
184+
glossary
184185

185186
.. _references:
186187

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,6 @@ virtualenvwrapper.post_deactivate_source =
7272
user_scripts = virtualenvwrapper.user_scripts:post_deactivate_source
7373
virtualenvwrapper.get_env_details =
7474
user_scripts = virtualenvwrapper.user_scripts:get_env_details
75+
76+
[pbr]
77+
warnerrors = true

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,10 @@ basepython=python2.7
4747
setenv =
4848
SHELL = /bin/ksh
4949
commands = ksh ./tests/run_tests {envdir} []
50+
51+
[testenv:docs]
52+
basepython=python2.7
53+
deps =
54+
-r{toxinidir}/requirements.txt
55+
-r{toxinidir}/docs/requirements.txt
56+
commands = python setup.py build_sphinx

0 commit comments

Comments
 (0)