diff options
author | holger krekel <holger@merlinux.eu> | 2010-07-04 23:44:38 +0200 |
---|---|---|
committer | holger krekel <holger@merlinux.eu> | 2010-07-04 23:44:38 +0200 |
commit | d19990a8eee9e314bf6c019404c904e2567c6977 (patch) | |
tree | 5f3575ac6648baca6704210ff0f036e58b43bd89 /doc/check_sphinx.py | |
parent | d9f47587f76da9c3ecdf7c1273a2cb78d4684286 (diff) | |
download | tox-d19990a8eee9e314bf6c019404c904e2567c6977.tar.gz |
refine checking of sphinx docs
Diffstat (limited to 'doc/check_sphinx.py')
-rw-r--r-- | doc/check_sphinx.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/check_sphinx.py b/doc/check_sphinx.py new file mode 100644 index 0000000..1d87ee8 --- /dev/null +++ b/doc/check_sphinx.py @@ -0,0 +1,16 @@ +import py +import subprocess +def test_linkcheck(tmpdir): + doctrees = tmpdir.join("doctrees") + htmldir = tmpdir.join("html") + subprocess.check_call( + ["sphinx-build", "-W", "-blinkcheck", + "-d", str(doctrees), ".", str(htmldir)]) + +def test_build_docs(tmpdir): + doctrees = tmpdir.join("doctrees") + htmldir = tmpdir.join("html") + subprocess.check_call([ + "sphinx-build", "-W", "-bhtml", + "-d", str(doctrees), ".", str(htmldir)]) + |