summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--docs/developer-guide.txt12
-rw-r--r--tox.ini8
3 files changed, 16 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index f5661164..b850622f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
bin
build
dist
+docs/build
include
lib
distribute.egg-info
diff --git a/docs/developer-guide.txt b/docs/developer-guide.txt
index b2c1a0ce..85210055 100644
--- a/docs/developer-guide.txt
+++ b/docs/developer-guide.txt
@@ -106,10 +106,12 @@ Setuptools follows ``semver``.
Building Documentation
----------------------
-Setuptools relies on the Sphinx system for building documentation.
-To accommodate RTD, docs must be built from the docs/ directory.
+Setuptools relies on the `Sphinx`_ system for building documentation.
+The `published documentation`_ is hosted on Read the Docs.
-To build them, you need to have installed the requirements specified
-in docs/requirements.txt. One way to do this is to use rwt:
+To build the docs locally, use tox::
- setuptools/docs$ python -m rwt -r requirements.txt -- -m sphinx . html
+ $ tox -e docs
+
+.. _Sphinx: http://www.sphinx-doc.org/en/master/
+.. _published documentation: https://setuptools.readthedocs.io/en/latest/
diff --git a/tox.ini b/tox.ini
index a0c4cdf3..962cb9e1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -33,6 +33,14 @@ deps=codecov
skip_install=True
commands=codecov --file {toxworkdir}/coverage.xml
+[testenv:docs]
+deps = -r{toxinidir}/docs/requirements.txt
+skip_install=True
+commands =
+ python {toxinidir}/bootstrap.py
+ sphinx-build -b html -d {envtmpdir}/doctrees docs docs/build/html
+ sphinx-build -b man -d {envtmpdir}/doctrees docs docs/build/man
+
[coverage:run]
source=
pkg_resources