-
Notifications
You must be signed in to change notification settings - Fork 33
/
mkdocs.yml
161 lines (151 loc) · 4.52 KB
/
mkdocs.yml
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
site_name: navis
site_description: Python library for analysis of neuroanatomical data.
# strict: true
repo_name: navis-org/navis
repo_url: https://github.com/navis-org/navis
edit_uri: edit/main/docs/
# watch:
# - src
nav:
- Home: index.md
- Installation: installation.md
- Quickstart: quickstart.md
- Tutorials: generated/gallery
- ecosystem.md
- Changelog: changelog.md
- API Documentation:
- api.md
- Code References: reference/
# - Overview: api/index.md
# - Neurons: api/neurons.md
theme:
name: "material"
features:
- content.tabs.link
- content.code.annotate
- navigation.indexes
- navigation.instant
- navigation.instant.progress
- navigation.tabs
- navigation.tabs.sticky
- content.code.copy
#logo: images/icon.png
# below option would prevents loading typefaces from Google Fonts
# but see also the privacy plugin below
#font: false
icon:
#logo: fontawesome/solid/eye
repo: fontawesome/brands/github
#favicon: images/icon.png
palette:
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: black
toggle:
icon: fontawesome/regular/lightbulb
name: "Switch to dark mode"
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: white
accent: pink
toggle:
icon: fontawesome/solid/lightbulb
name: "Switch to light mode"
markdown_extensions:
- admonition
- abbr
- attr_list
- md_in_html
- pymdownx.snippets
- pymdownx.tasklist
- pymdownx.emoji:
emoji_generator: !!python/name:material.extensions.emoji.to_svg
emoji_index: !!python/name:material.extensions.emoji.twemoji
- pymdownx.extra
- pymdownx.highlight
- pymdownx.inlinehilite
- pymdownx.superfences
- pymdownx.tabbed:
alternate_style: true
- tables
- toc:
permalink: "#"
toc_depth: 3
- pymdownx.details
- pymdownx.arithmatex:
generic: true
- footnotes
plugins:
# the privacy plugin will bundle external assets (like Google Fonts)
# this should make the website GDPR compliant
- privacy
# the social plugin generates social cards for each page of the project
# which are used as previews when sharing links to the documentation
- social
- macros
# - mkdocs-jupyter:
# include_requirejs: true
# include_source: true
# include: ["neurons_intro.ipynb"]
- search:
separator: '[\s\-\_,:!=\[\]()"/]+|(?!\b)(?=[A-Z][a-z])|\.(?!\d)|&[lg]t;'
- autorefs
- minify:
minify_html: true
minify_js: true
minify_css: true
htmlmin_opts:
remove_comments: true
# css_files:
# - stylesheets/extra.css
- gen-files:
scripts:
- scripts/gen_ref_pages2.py
- literate-nav:
nav_file: SUMMARY.md
- section-index
- mkdocstrings:
handlers:
python:
import:
- https://docs.python.org/3/objects.inv
- https://numpy.org/doc/stable/objects.inv
options:
show_root_heading: true # default is false
docstring_style: "numpy"
line_length: 50 # default is 60
# show_if_no_docstring: true # default is false
show_signature: false # default is true
show_signature_annotations: true # default is false
annotations_path: "source" # default is 'brief'
show_bases: false # default is true
docstring_section_style: "spacy" # default is "table" but the tables end up being too wide
show_source: true
filters:
- "!^_"
- "^__init__$"
- glightbox
- gallery:
filename_pattern: "/tutorial_"
examples_dirs: docs/examples # path to your example scripts
gallery_dirs: docs/generated/gallery # where to save generated gallery
conf_script: docs/gallery_conf.py # configuration script
within_subsection_order: FileNameSortKey # sort examples by filename
download_all_examples: false
remove_config_comments: true
matplotlib_animations: true
image_srcset: ['2x']
# only_warn_on_example_error: true
- markdown-exec
extra:
# Use {{ navis }} to insert a coloured "NAVis" in the text
navis: <span style="color:rgb(250,175,3)">NAVis</span>
extra_css:
- stylesheets/extra.css
- https://unpkg.com/katex@0/dist/katex.min.css
extra_javascript:
- javascripts/katex.js
- https://unpkg.com/katex@0/dist/katex.min.js
- https://unpkg.com/katex@0/dist/contrib/auto-render.min.js