소스 검색

docs: tox -e docs tests building the docs

Thomas Waldmann 1 년 전
부모
커밋
fc7cd92ee2
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10 1
      tox.ini

+ 10 - 1
tox.ini

@@ -2,13 +2,14 @@
 # fakeroot -u tox --recreate
 
 [tox]
-envlist = py{39,310,311}-{none,fuse2,fuse3}
+envlist = py{39,310,311}-{none,fuse2,fuse3},docs
 minversion = 3.2
 requires =
 	pkgconfig
 	cython
 	wheel
 	setuptools_scm
+
 [testenv]
 package = editable-legacy  # without this it does not find setup_docs when running under fakeroot
 setenv =
@@ -42,3 +43,11 @@ deps =
     mypy
     pkgconfig
 commands = mypy
+
+[testenv:docs]
+changedir = docs
+deps =
+    sphinx
+    guzzle_sphinx_theme
+commands =
+    sphinx-build -n -v -W --keep-going -b html -d {envtmpdir}/doctrees . {envtmpdir}/html