-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmkdocs.yml
142 lines (119 loc) · 3.7 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
# yaml-language-server: $schema=https://squidfunk.github.io/mkdocs-material/schema.json
strict: true
site_name: NumType
site_description: Better typing stubs for NumPy
site_author: Joren Hammudoglu
site_url: https://numpy.org/numtype/
repo_url: https://github.com/numpy/numtype
repo_name: numpy/numtype
edit_uri: blob/main/docs/
plugins:
# https://github.com/mkdocstrings/autorefs
- autorefs:
resolve_closest: true
# https://lukasgeiter.github.io/mkdocs-awesome-nav/
- awesome-nav:
filename: .nav.yml
# https://github.com/mondeja/mkdocs-include-markdown-plugin
- include-markdown:
# https://github.com/byrnereese/mkdocs-minify-plugin
- minify:
minify_html: true
enabled: !ENV [CI, false]
# https://github.com/mkdocstrings/mkdocstrings
# https://github.com/mkdocstrings/python
- mkdocstrings:
handlers:
python:
inventories:
- url: https://docs.python.org/3/objects.inv
- url: https://numpy.org/doc/stable/objects.inv
- url: https://docs.scipy.org/doc/scipy/objects.inv
options:
docstring_section_style: list
members_order: source
show_root_heading: true
show_source: false
show_signature_annotations: true
# https://squidfunk.github.io/mkdocs-material/plugins/privacy/
- privacy:
enabled: !ENV [CI, false]
# https://squidfunk.github.io/mkdocs-material/plugins/search/
- search
markdown_extensions:
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/
- abbr
- attr_list
- def_list
- footnotes
- md_in_html
- toc:
permalink: "#"
# https://github.com/oprypin/markdown-callouts
- callouts
# https://facelessuser.github.io/pymdown-extensions/extensions/betterem/
- pymdownx.betterem:
smart_enable: asterisk
- pymdownx.blocks.tab:
alternate_style: true
# https://facelessuser.github.io/pymdown-extensions/extensions/emoji/
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
# https://facelessuser.github.io/pymdown-extensions/extensions/highlight/
- pymdownx.highlight:
anchor_linenums: true
use_pygments: true
- pymdownx.inlinehilite
- pymdownx.superfences
# https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/
- pymdownx.magiclink:
repo_url_shortener: true
repo_url_shorthand: true
provider: github
user: numpy
repo: numtype
# https://facelessuser.github.io/pymdown-extensions/extensions/saneheaders/
- pymdownx.saneheaders:
theme:
name: material
custom_dir: docs/theme/overrides
favicon: theme/img/favicon.ico
logo: theme/img/icon.svg
features:
- content.tabs.link
- content.tooltips
- navigation.path
- navigation.indexes
- navigation.prune
- navigation.sections
- navigation.tabs
- navigation.top
- navigation.tracking
- search.highlight
- search.share
- search.suggest
- toc.follow
palette:
- media: "(prefers-color-scheme)"
toggle:
icon: fontawesome/solid/circle-half-stroke
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: custom
toggle:
icon: fontawesome/regular/moon
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: custom
toggle:
icon: fontawesome/regular/sun
name: Switch to system preference
extra_css:
- theme/style/color.css
- theme/style/font.css
- theme/style/overrides.css
- theme/style/theme.css
copyright: "© Copyright 2025, NumPy Developers."