File tree Expand file tree Collapse file tree 3 files changed +16
-28
lines changed Expand file tree Collapse file tree 3 files changed +16
-28
lines changed Original file line number Diff line number Diff line change @@ -167,20 +167,19 @@ We recommend that your contribution complies with the following guidelines befor
167
167
168
168
# # Building the documentation locally
169
169
170
- A local build of the docs is achieved by :
170
+ To build the documentation, run from the ** project root ** :
171
171
172
172
` ` ` bash
173
- cd docs
174
173
make html
175
174
` ` `
176
-
177
- Sometimes not all changes are recognised. In that case run this (again from within the ` docs` folder):
178
-
175
+ To clean and rebuild the documentation from scratch:
179
176
` ` ` bash
180
- make clean && make html
177
+ make cleandocs
178
+ make html
181
179
` ` `
180
+ Docs are built in docs/_build/html, but these docs are not committed to the GitHub repository due to .gitignore.
182
181
183
- Docs are built in ` docs/_build ` , but these docs are _not_ committed to the GitHub repository due to ` .gitignore ` .
182
+ 📌 Note: The previous docs/Makefile has been removed. Please use only the root-level Makefile for documentation commands
184
183
185
184
# # Overview of code structure
186
185
Original file line number Diff line number Diff line change 1
- .PHONY : init lint check_lint test
1
+ .PHONY : init lint check_lint test uml html cleandocs
2
2
3
3
init :
4
4
python -m pip install -e . --no-deps
20
20
21
21
uml :
22
22
pyreverse -o png causalpy --output-directory docs/source/_static --ignore tests
23
+
24
+ # Docs build commands
25
+
26
+ html :
27
+ sphinx-build -b html docs/source docs/_build
28
+
29
+ cleandocs :
30
+ rm -rf docs/_build
31
+ rm -rf docs/source/api/generated
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments