-
Notifications
You must be signed in to change notification settings - Fork 2
/
mkdocs.yaml
215 lines (201 loc) · 5.26 KB
/
mkdocs.yaml
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# project
site_name: Pydantic Pint
site_url: https://pydantic-pint.readthedocs.io
site_author: Tyler Hughes
site_description: >-
Pydantic validation for Pint Quantities.
# repository
repo_name: tylerh111
repo_url: https://github.com/tylerh111/pydantic-pint
# edit_uri: edit/main/docs
# build
remote_name: origin
remote_branch: docs
# copyright
copyright: Copyright © 2024 Tyler Hughes
# configuration
extra:
generator: false
status:
new: Recently Added
deprecated: Deprecated
social:
- icon: fontawesome/brands/git-alt
link: https://github.com/tylerh111
- icon: fontawesome/brands/python
link: https://pypi.org/project/pydantic-pint/
extra_css:
extra_javascript:
- https://unpkg.com/mermaid@10.6.1/dist/mermaid.min.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/katex.min.js
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
hooks:
- docs/plugins/fetch_project_files.py
strict: false
validation:
absolute_links: warn
omitted_files: warn
unrecognized_links: warn
watch: [
"src",
"CHANGES.md",
"CONTRIBUTING.md",
"LICENSE.md",
]
# theme
theme:
name: material
# logo: assets/logo.png
# favicon: assets/favicon.ico
custom_dir: docs/overrides
font:
text: Roboto
code: Roboto Mono
features:
- announce.dismiss
- content.action.edit
- content.action.view
- content.code.annotate
- content.code.copy
- content.tooltips
- navigation.expand
- navigation.indexes
- navigation.instant
- navigation.sections
- navigation.tabs
- navigation.top
- navigation.tracking
- search.highlight
- search.share
- search.suggest
- toc.follow
palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/link
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/toggle-switch
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black
accent: indigo
toggle:
icon: material/toggle-switch-off
name: Switch to system preference
# plugins
plugins:
- exclude:
glob:
- plugins/*
- __pycache__/*
- mike:
alias_type: symlink
canonical_version: latest
- minify:
minify_html: true
- mkdocstrings:
handlers:
python:
import:
- https://docs.python.org/3.8/objects.inv
- https://docs.pydantic.dev/latest/objects.inv
- https://pint.readthedocs.io/en/latest/objects.inv
paths: [src]
options:
allow_inspection: true
docstring_section_style: spacy
docstring_style: google
heading_level: 2
inherited_members: true
members_order: source
merge_init_into_class: true
separate_signature: true
show_root_heading: true
show_signature_annotations: false
show_symbol_type_heading: true
show_symbol_type_toc: true
- redirects:
- search:
# extensions
markdown_extensions:
- abbr:
- admonition:
- footnotes:
# - smarty:
# smart_quotes: false
- tables:
- toc:
permalink: true
slugify: !!python/object/apply:pymdownx.slugs.slugify {kwds: {case: lower}}
- pymdownx.arithmatex:
generic: true
- pymdownx.betterem:
smart_enable: all
- pymdownx.blocks.definition:
- pymdownx.blocks.html:
- pymdownx.caret:
- pymdownx.details:
- pymdownx.emoji:
emoji_generator: !!python/name:material.extensions.emoji.to_svg
emoji_index: !!python/name:material.extensions.emoji.twemoji
# - pymdownx.escapeall:
# hardbreak: True
# nbsp: True
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite:
custom_inline:
- name: math
class: arithmatex
format: !!python/name:pymdownx.arithmatex.arithmatex_inline_format
- pymdownx.keys:
- pymdownx.mark:
- pymdownx.magiclink:
repo_url_shortener: true
repo_url_shorthand: true
social_url_shorthand: true
social_url_shortener: true
user: tylerh111
repo: pydantic-pint
normalize_issue_symbols: true
# - pymdownx.progressbar:
# - pymdownx.saneheaders:
- pymdownx.smartsymbols:
- pymdownx.snippets:
# - pymdownx.striphtml:
- pymdownx.superfences:
preserve_tabs: true
custom_fences:
- name: math
class: arithmatex
format: !!python/name:pymdownx.arithmatex.arithmatex_fenced_format
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed:
alternate_style: true
combine_header_slug: true
slugify: !!python/object/apply:pymdownx.slugs.slugify {kwds: {case: lower}}
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde:
# navigation
nav:
- Get Started:
- Welcome: index.md
- Usage: usage.md
- Changes: changes.md
- Contributing: contributing.md
- License: license.md
- API Documentation:
- Pydantic Pint:
- Quantity: api/quantity.md