Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Create separate testenvs to build docs and check links

Julia Medinaec5494292525
diff --git a/tox.ini b/tox.ini
index f6c153ae3..5c8c8c78d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -57,10 +57,19 @@ deps =
basepython = python3.4
deps = {[testenv:py33]deps}
-[testenv:docs]
+[docs]
changedir = docs
deps =
Sphinx
+
+[testenv:docs]
+changedir = {[docs]changedir}
+deps = {[docs]deps}
commands =
sphinx-build -W -b html . {envtmpdir}/html
+
+[testenv:docs-links]
+changedir = {[docs]changedir}
+deps = {[docs]deps}
+commands =
sphinx-build -W -b linkcheck . {envtmpdir}/linkcheck