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: README.md
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Then install the required packages:
39
39
pip install -r pip_requirements.txt
40
40
```
41
41
42
-
Run mkdocs at http://127.0.0.1:8000/docs/:
42
+
Run mkdocs at:http://127.0.0.1:8000/docs/
43
43
```bash
44
44
# It will automatically reload the docs when changes are made
45
45
mkdocs serve --config-file ./mkdocs.yaml
@@ -61,3 +61,32 @@ Navigate to http://127.0.0.1:8000/docs/ to preview the changes.
61
61
62
62
This setup supports live-reloading so all that is needed is to save the markdown files
63
63
and/or `mkdocs.yaml` file to trigger a reload.
64
+
65
+
## Mkdocs Warning Explanation
66
+
67
+
> TL;DR: We need to do it this way for hosting, please keep it as is.
68
+
69
+
```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.
74
+
```
75
+
76
+
- We use reverse proxy to proxy our docs sites, here is the proxy flow:
77
+
- You hit `datajoint.com/*` on your browser
78
+
- It'll bring you to the reverse proxy server first, that you wouldn't notice
79
+
- when your URL ends with:
80
+
-`/` is the company page
81
+
-`/docs/` is the landing/navigation page hosted by datajoint/datajoint-docs's github pages
82
+
-`/docs/core/datajoint-python/` is the actual docs site hosted by datajoint/datajoint-python's github pages
83
+
-`/docs/elements/element-*/` is the actual docs site hosted by each element's github pages
84
+
85
+
86
+
```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'?
91
+
```
92
+
- 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