summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2019-10-04 14:14:07 -0400
committerJulian Berman <Julian@GrayVines.com>2019-10-04 14:14:07 -0400
commit3f1e286230508f335debca1c4c818ef53ac2e5a9 (patch)
tree2c1d93bfc01dcbdcf40c3cf4963a3462245a3787
parent217d02744477ac7d9c71dede16a0a4f614561665 (diff)
downloadjsonschema-3f1e286230508f335debca1c4c818ef53ac2e5a9.tar.gz
Use sphinx build via -m rather than make.
Gives it at least a shot at working on Windows.
-rw-r--r--tox.ini26
1 files changed, 13 insertions, 13 deletions
diff --git a/tox.ini b/tox.ini
index 82fbd01..f3b00f9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -104,25 +104,16 @@ commands =
basepython = pypy3
changedir = docs
whitelist_externals = make
-commands = make -f {toxinidir}/docs/Makefile BUILDDIR={envtmpdir}/build SPHINXOPTS='-a -c {toxinidir}/docs/ -n -q -T -W {posargs}' html
+commands = {envpython} -m sphinx -b html {toxinidir}/docs/ {envtmpdir}/build {posargs:-a -n -q -T -W}
deps =
-r{toxinidir}/docs/requirements.txt
{toxinidir}
-[testenv:docs-style]
-basepython = pypy3
-changedir = docs
-commands = doc8 {posargs} {toxinidir}/docs
-deps =
- doc8
- pygments
- pygments-github-lexers
-
[testenv:docs-doctest]
basepython = pypy3
changedir = docs
whitelist_externals = make
-commands = make -f {toxinidir}/docs/Makefile BUILDDIR={envtmpdir}/build SPHINXOPTS='-a -c {toxinidir}/docs/ -n -q -T -W {posargs}' doctest
+commands = {envpython} -m sphinx -b doctest {toxinidir}/docs/ {envtmpdir}/build {posargs:-a -n -q -T -W}
deps =
-r{toxinidir}/docs/requirements.txt
{toxinidir}
@@ -131,7 +122,7 @@ deps =
basepython = pypy3
changedir = docs
whitelist_externals = make
-commands = make -f {toxinidir}/docs/Makefile BUILDDIR={envtmpdir}/build SPHINXOPTS='-a -c {toxinidir}/docs/ -n -q -T -W {posargs}' linkcheck
+commands = {envpython} -m sphinx -b linkcheck {toxinidir}/docs/ {envtmpdir}/build {posargs:-a -n -q -T -W}
deps =
-r{toxinidir}/docs/requirements.txt
{toxinidir}
@@ -140,11 +131,20 @@ deps =
basepython = pypy3
changedir = docs
whitelist_externals = make
-commands = make -f {toxinidir}/docs/Makefile BUILDDIR={envtmpdir}/build SPHINXOPTS='-a -c {toxinidir}/docs/ -n -q -T -W {posargs}' spelling
+commands = {envpython} -m sphinx -b spelling {toxinidir}/docs/ {envtmpdir}/build {posargs:-a -n -q -T -W}
deps =
-r{toxinidir}/docs/requirements.txt
{toxinidir}
+[testenv:docs-style]
+basepython = pypy3
+changedir = docs
+commands = doc8 {posargs} {toxinidir}/docs
+deps =
+ doc8
+ pygments
+ pygments-github-lexers
+
[doc8]
ignore-path =
version.txt,