From ecc1b866fa0ed916cc7b2825d55e1204d684e8c3 Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Tue, 15 Apr 2025 16:42:02 +0200
Subject: [PATCH] build docs during tox

---
 tox.ini | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/tox.ini b/tox.ini
index d9de39c..c34930b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = lint, typecheck
+envlist = lint, typecheck, docs
 
 [testenv:lint]
 description = Lint code with Ruff
@@ -9,4 +9,16 @@ commands = ruff check mapping_provider
 [testenv:typecheck]
 description = Type-check code with mypy
 deps = mypy
-commands = mypy mapping_provider
\ No newline at end of file
+commands = mypy mapping_provider
+
+[testenv:docs]
+description = Build docs
+deps =
+    sphinx
+    sphinx-rtd-theme
+    sphinxcontrib-plantuml
+    sphinxcontrib-drawio
+    sphinxcontrib-openapi
+commands = sphinx-build -b html docs/source docs/build
+
+
-- 
GitLab