-
Notifications
You must be signed in to change notification settings - Fork 3
/
mkdocs.yml
188 lines (180 loc) · 5.13 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
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
site_url: https://dd.github.io/Meringue
site_name: Meringue
site_description: Meringue library python documentation
site_author: Dmitriy Dobrynin (aka dd) <[email protected]>
copyright: Copyright © 2014 - present <a href="https://t.me/spiderTongue" target="_blank" rel="noopener" >tovarisch.engineer</a>
repo_name: dd/Meringue
repo_url: https://github.com/dd/Meringue
edit_uri: edit/master/docs/src
docs_dir: docs/src
site_dir: docs/dist
dev_addr: 127.0.0.1:7000
theme:
name: material
language: en
custom_dir: docs/theme
logo: assets/favicon.svg
favicon: assets/favicon.svg
palette:
# dark mode and switch to automatic
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black
accent: indigo
toggle:
icon: material/weather-night
name: Switch to light mode
# light mode and switch to dark
- media: "(prefers-color-scheme: light)"
scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/weather-sunny
name: Switch to dark mode
features:
- navigation.instant
- navigation.tracking
- navigation.tabs
- navigation.path
- navigation.prune
# - navigation.indexes
- toc.follow
- navigation.top
- search.suggest
- search.highlight
- navigation.footer
- content.action.view
- content.action.edit
- content.tabs.link
- content.code.copy
- content.code.annotate
markdown_extensions:
- toc:
title: On this page
permalink: "¤" # true
slugify: !!python/object/apply:pymdownx.slugs.slugify {kwds: {case: lower}}
- admonition
- attr_list
- footnotes
- md_in_html
- tables
- pymdownx.betterem
- pymdownx.details
- pymdownx.superfences:
preserve_tabs: true
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tilde
- pymdownx.smartsymbols
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.highlight:
anchor_linenums: true
linenums: true
linenums_style: pymdownx-inline
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.keys
- pymdownx.snippets:
check_paths: true
- def_list
# - pymdownx.magiclink:
# hide_protocol: true
# - pymdownx.escapeall:
# hardbreak: True
# nbsp: True
# # - markdown.extensions.smarty:
# # smart_quotes: false
plugins:
- search
- literate-nav:
nav_file: SUMMARY.md
implicit_index: true
- git-revision-date-localized:
type: custom # timeago
# :material-clock-edit-outline:
# :material-clock-plus-outline:
custom_format: "%Y-%m-%d %H:%M:%S%z"
timezone: UTC
locale: en
fallback_to_build_date: true
enable_creation_date: true
exclude:
- index.md
- reference/*
enabled: !ENV [MERINGUE_MKDOCS_ENABLED_GIT_REVISION_DATE, true]
- git-authors:
exclude:
- index.md
- reference/*
- autorefs
- gen-files:
scripts:
- docs/gen_ref_pages.py
- mkdocstrings:
default_handler: python
handlers:
python:
load_external_modules: true
import:
- https://docs.python.org/3/objects.inv
# - https://mkdocstrings.github.io/objects.inv
# - https://mkdocstrings.github.io/griffe/objects.inv
- https://docs.djangoproject.com/en/4.2/_objects
# - https://django-modeltranslation.readthedocs.io/en/latest/objects.inv
# - https://django-polymorphic.readthedocs.io/en/stable/objects.inv
# - url: https://docs.python-requests.org/en/master/objects.inv
- https://drf-spectacular.readthedocs.io/en/latest/objects.inv
options:
# show_bases: false
show_source: true
show_signature_annotations: true
members_order: source
group_by_category: false
docstring_section_style: list
merge_init_into_class: true
separate_signature: true
signature_crossrefs: true
- offline:
enabled: !ENV [MERINGUE_MKDOCS_OFFLINE, false]
- minify:
minify_html: !ENV [MERINGUE_MKDOCS_ENABLE_MINIFY, true]
# minify_js: !ENV [MERINGUE_MKDOCS_ENABLE_MINIFY, true]
minify_css: !ENV [MERINGUE_MKDOCS_ENABLE_MINIFY, true]
htmlmin_opts:
remove_comments: true
cache_safe: true
css_files:
- css/base.css
extra:
version:
provider: mike
# alternate:
# - name: English
# link: /en/
# lang: en
# - name: Russian
# link: /ru/
# lang: ru
social:
- icon: fontawesome/brands/github
link: https://github.com/dd/Meringue
name: github
- icon: fontawesome/brands/python # simple/pypi
link: https://pypi.org/project/meringue/
name: pypi
extra_css:
- css/base.css
watch:
- docs/theme
- docs/gen_ref_pages.py
- meringue
- README.md