forked from datajoint/element-zstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmkdocs.yaml
More file actions
173 lines (170 loc) · 5.57 KB
/
mkdocs.yaml
File metadata and controls
173 lines (170 loc) · 5.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# ---------------------- PROJECT SPECIFIC ---------------------------
site_name: DataJoint Documentation
site_url: https://docs.datajoint.com/elements/element-zstack/
repo_url: https://github.com/datajoint/element-zstack
repo_name: datajoint/element-zstack
nav:
- Element ZStack: index.md
- Data Pipeline: pipeline.md
- Tutorials:
- tutorials/index.md
- Tutorial Notebook: tutorials/tutorial.ipynb
- Concepts: concepts.md
- Key Partnerships: partnerships.md
- Roadmap: roadmap.md
- Citation: citation.md
- API: api/ # defer to gen-files + literate-nav
- Changelog: changelog.md
# --------------------- NOTES TO CONTRIBUTORS -----------------------
# Markdown in mkdocs
# 01. Rendering concatenates across single line breaks. This means...
# A. We have to be careful to add extra line breaks around paragraphs,
# including between the end of a pgf and the begining of bullets.
# B. We can use hard wrapping to make github reviews easier to read.
# VSCode Rewrap extension offers a keyboard shortcut for hard wrap
# at the ruler, but don't add breaks in [multiword links](example.com)
# 02. Instead of designating codeblocks with bash, use console. For example..
# ```console
# cd ../my_dir
# ```
# 03. Links across docs should ...
# A. Not involve line breaks.
# B. Use relative paths to docs in the same repo
# C. Use lowercase and hyphens not spaces: [sub headings](./doc#sub-heading)
#
# Files
# 01. Add a soft link to your changelog with the following
# ```console
# ln -s ../../CHANGELOG.md ./docs/src/changelog.md
# ```
#
# Site rendering
# 01. Deploy locally to localhost with the command
# ```console
# MODE="LIVE" PACKAGE=element_{ELEMENT} \
# UPSTREAM_REPO=https://github.com/datajoint/element-{ELEMENT}.git \
# HOST_UID=$(id -u) docker compose -f docs/docker-compose.yaml up --build
# ```
# 02. The API section will pull docstrings.
# A. Follow google style guide e.g.,
# https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html
# With typing suggestions: https://docs.python.org/3/library/typing.html
# B. To pull a specific workflow fork, change ./docs/src/api/make_pages.py#L19
# 03. To see your fork of the workflow-{element} in this render, change the
# URL in ./docs/src/api/make_pages.py#L19 to your fork.
# 04. To deploy this site on your fork,
# A. declare a branch called gh-pages
# B. go to the your fork > settings > pages
# C. direct pages to render from the gh-pages branch at root
# D. push a tag to your fork with the format test*.*.*
#
# ---------------------------- STANDARD -----------------------------
edit_uri: ./edit/main/docs/src
docs_dir: ./src
theme:
font:
text: Roboto SVolume
code: Source Code Pro
name: material
custom_dir: src/.overrides
icon:
logo: main/company-logo
favicon: assets/images/company-logo-blue.png
features:
- toc.integrate
- content.code.annotate
palette:
- media: "(prefers-color-scheme: light)"
scheme: datajoint
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to light mode
plugins:
- markdownextradata: {}
- search
- mkdocstrings:
default_handler: python
handlers:
python:
options:
members_order: source
group_by_category: false
line_length: 88
- gen-files:
scripts:
- ./src/api/make_pages.py
- literate-nav:
nav_file: navigation.md
- exclude-search:
exclude:
- "*/navigation.md"
- mkdocs-jupyter:
ignore_h1_titles: True
include: ["*.ipynb"]
- section-index
markdown_extensions:
- attr_list
- toc:
permalink: true
- pymdownx.emoji:
options:
custom_icons:
- .overrides/.icons
- mdx_truly_sane_lists
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed:
alternate_style: true
- pymdownx.highlight:
linenums: true
- pymdownx.inlinehilite
- pymdownx.snippets
- footnotes
- pymdownx.magiclink # Displays bare URLs as links
- pymdownx.tasklist: # Renders check boxes in tasks lists
custom_checkbox: true
extra:
PATCH_VERSION: !ENV PATCH_VERSION
generator: false # Disable watermark
version:
provider: mike
social:
- icon: main/company-logo
link: https://www.datajoint.com
name: DataJoint
- icon: fontawesome/brands/slack
link: https://datajoint.slack.com
name: Slack
- icon: fontawesome/brands/linkedin
link: https://www.linkedin.com/company/datajoint
name: LinkedIn
- icon: fontawesome/brands/twitter
link: https://twitter.com/datajoint
name: Twitter
- icon: fontawesome/brands/github
link: https://github.com/datajoint
name: GitHub
- icon: fontawesome/brands/docker
link: https://hub.docker.com/u/datajoint
name: DockerHub
- icon: fontawesome/brands/python
link: https://pypi.org/user/datajointbot
name: PyPI
- icon: fontawesome/brands/stack-overflow
link: https://stackoverflow.com/questions/tagged/datajoint
name: StackOverflow
- icon: fontawesome/brands/youtube
link: https://www.youtube.com/channel/UCdeCuFOTCXlVMRzh6Wk-lGg
name: YouTube
extra_css:
- assets/stylesheets/extra.css
extra_javascript:
- https://js-na1.hs-scripts.com/23133402.js # HubSpot chatbot