[LTP] [PATCH v4 2/5] doc: Add sphinx to requirements.txt

Petr Vorel
2025-03-28T09:58:30Z

Although that slightly prolongs creating virtualenv, it's probably
better to handle it as the other requirements.

Suggested-by: Andrea Cervesato <andrea.cervesato@suse.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
New in v4.

doc/developers/documentation.rst | 2 --
doc/requirements.txt | 1 +
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/doc/developers/documentation.rst b/doc/developers/documentation.rst
index 27c847e125..a303253693 100644
--- a/doc/developers/documentation.rst
+++ b/doc/developers/documentation.rst
@@ -23,8 +23,6 @@ Before building, make sure you have python3 ``virtualenv`` module installed.
# prepare virtual environment
python3 -m virtualenv .venv
. .venv/bin/activate
-
- pip install sphinx # usually packaged in distros
pip install -r requirements.txt

# build documentation
diff --git a/doc/requirements.txt b/doc/requirements.txt
index 742fb8b4bb..1f4cefb2c6 100644
--- a/doc/requirements.txt
+++ b/doc/requirements.txt
@@ -1,3 +1,4 @@
+sphinx
sphinx-rtd-theme==2.0.0
linuxdoc==20231020
sphinxcontrib-spelling==7.7.0
--
2.49.0