From d32b0d4ee18c1875bbfbe14e2dd1cc8d01bf153a Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 15 May 2023 12:28:55 +0200 Subject: [PATCH] Sphinx: add venv instructions --- sphinx/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sphinx/README.md b/sphinx/README.md index 48aae9e..4bcd44e 100644 --- a/sphinx/README.md +++ b/sphinx/README.md @@ -8,14 +8,15 @@ The template is adapted from the Blender manual to support the same extensions. Install dependencies. - pip3 install -r requirements.txt + python3 -m venv venv + ./venv/bin/pip3 install -r requirements.txt Add to Gitea app.ini. [markup.restructuredtext] ENABLED = true FILE_EXTENSIONS = .rst - RENDER_COMMAND = timeout 30s sudo -u sphinx python3 ./custom/sphinx/sphinx_to_html.py + RENDER_COMMAND = timeout 30s sudo -u sphinx ./custom/sphinx/venv/bin/python3 ./custom/sphinx/sphinx_to_html.py [markup.sanitizer.restructuredtext] ELEMENT = div