Skip to content

Commit 71d22d8

Browse files
Merge pull request #4 from Nokia-Bell-Labs/update-maintenance
updated maintenance instructions for new docs generation
2 parents bcc6abb + 0ed1328 commit 71d22d8

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

docs/source/maintenance.rst

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,23 @@ The documentation is a mixture of manually written pages, and auto-generated API
1313
* Documentation is written in ``reStructuredText`` syntax, as documented `here <https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html>`_ .
1414
* If adding a new file, be sure to include it in the table of contents in ``index.rst``
1515

16-
* Use a virtual environment, e.g. created using::
16+
* Use a virtual environment with the required dependencies for building docs, e.g. created using::
1717
1818
cd longitudinal-ecg-analysis/
19-
python3 -m venv venv
20-
source venv/bin/activate
21-
pip install -r requirements.txt
19+
python3 -m venv .venv-docs
20+
source .venv-docs/bin/activate
21+
pip install --uppgrade pip
22+
pip install -r docs/requirements.txt
2223

23-
* Update the auto-generated API documentation using::
24+
* Test build the docs locally using::
2425
25-
cd longitudinal-ecg-analysis/
26-
sphinx-apidoc -f -o docs/source/api ./src/longitudinal_ecg_analysis
2726
cd docs
28-
make html
29-
cd ..
27+
sphinx-apidoc -f -o source/api ../src/longitudinal_ecg_analysis
28+
sphinx-build -b html source build/html
29+
30+
* Raise a PR, and then the docs will be built using a GitHub action.
3031

32+
3133
Generate requirements.txt
3234
-------------------------
3335

0 commit comments

Comments
 (0)