You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+17-12Lines changed: 17 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,13 +36,22 @@ source .venv/bin/activate
36
36
37
37
Then install the required packages:
38
38
```bash
39
-
pip install -r pip_requirements.txt
39
+
# go to the repo's root directory to generate API docs
40
+
# cd ~/datajoint-python/
41
+
42
+
# install mkdocs related requirements
43
+
pip install -r ./docs/pip_requirements.txt
44
+
# install datajoint, since API docs are generated from the package
45
+
pip install -e .[dev]
40
46
```
41
47
42
-
Run mkdocs at: http://127.0.0.1:8000/docs/
48
+
Run mkdocs at: http://127.0.0.1:8000/
43
49
```bash
50
+
# go to the repo's root directory to generate API docs
51
+
# cd ~/datajoint-python/
52
+
44
53
# It will automatically reload the docs when changes are made
45
-
mkdocs serve --config-file ./mkdocs.yaml
54
+
mkdocs serve --config-file ./docs/mkdocs.yaml
46
55
```
47
56
48
57
## With Docker
@@ -57,7 +66,7 @@ Then run the following:
57
66
MODE="LIVE" docker compose up --build
58
67
```
59
68
60
-
Navigate to http://127.0.0.1:8000/docs/ to preview the changes.
69
+
Navigate to http://127.0.0.1:8000/ to preview the changes.
61
70
62
71
This setup supports live-reloading so all that is needed is to save the markdown files
63
72
and/or `mkdocs.yaml` file to trigger a reload.
@@ -67,10 +76,8 @@ and/or `mkdocs.yaml` file to trigger a reload.
67
76
> TL;DR: We need to do it this way for hosting, please keep it as is.
68
77
69
78
```log
70
-
WARNING - A reference to 'core/datajoint-python/' is included in the 'nav' configuration, which is not found
71
-
in the documentation files.
72
-
INFO - Doc file 'index.md' contains an unrecognized relative link './core/datajoint-python/', it was left
73
-
as is.
79
+
INFO - Doc file 'index.md' contains an unrecognized relative link './develop', it was left as is. Did you mean
80
+
'develop.md'?
74
81
```
75
82
76
83
- We use reverse proxy to proxy our docs sites, here is the proxy flow:
@@ -84,9 +91,7 @@ INFO - Doc file 'index.md' contains an unrecognized relative link './core/da
84
91
85
92
86
93
```log
87
-
WARNING - Doc file 'partnerships/openephysgui.md' contains a link
88
-
'../../images/community-partnerships-openephysgui-logo.png', but the target
89
-
'../images/community-partnerships-openephysgui-logo.png' is not found among documentation files.
90
-
Did you mean '../images/community-partnerships-openephysgui-logo.png'?
94
+
WARNING - Doc file 'query/operators.md' contains a link '../../../images/concepts-operators-restriction.png', but
95
+
the target '../../images/concepts-operators-restriction.png' is not found among documentation files.
91
96
```
92
97
- We use Github Pages to host our docs, the image references needs to follow the mkdocs's build directory structure, under `site/` directory once you run mkdocs.
0 commit comments