Switch docs to Sphinx (#1166)
diff --git a/tox.ini b/tox.ini
index 2ae75ad..87b669f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -69,3 +69,21 @@
ovn: ATMOSPHERE_NETWORK_BACKEND = ovn
commands =
molecule test -s aio
+
+[testenv:docs]
+envdir = {toxworkdir}/docs
+deps =
+ -r{toxinidir}/doc/requirements.txt
+allowlist_externals =
+ rm
+commands =
+ rm -rf doc/build/html doc/build/doctrees
+ sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html
+
+[testenv:docs-serve]
+envdir = {[testenv:docs]envdir}
+deps = {[testenv:docs]deps}
+allowlist_externals = {[testenv:docs]allowlist_externals}
+commands =
+ rm -rf doc/build/html doc/build/doctrees
+ sphinx-autobuild doc/source doc/build/html