Sphinx: add venv instructions
This commit is contained in:
@@ -8,14 +8,15 @@ The template is adapted from the Blender manual to support the same extensions.
|
|||||||
|
|
||||||
Install dependencies.
|
Install dependencies.
|
||||||
|
|
||||||
pip3 install -r requirements.txt
|
python3 -m venv venv
|
||||||
|
./venv/bin/pip3 install -r requirements.txt
|
||||||
|
|
||||||
Add to Gitea app.ini.
|
Add to Gitea app.ini.
|
||||||
|
|
||||||
[markup.restructuredtext]
|
[markup.restructuredtext]
|
||||||
ENABLED = true
|
ENABLED = true
|
||||||
FILE_EXTENSIONS = .rst
|
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]
|
[markup.sanitizer.restructuredtext]
|
||||||
ELEMENT = div
|
ELEMENT = div
|
||||||
|
|||||||
Reference in New Issue
Block a user