-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
mkdocs.yml
187 lines (178 loc) · 4.72 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
---
site_name: Django-Components
site_description: A way to create simple reusable template components in Django.
site_url: https://emilstenstrom.github.io/django-components/
repo_url: https://github.com/EmilStenstrom/django-components
repo_name: EmilStenstrom/django-components
edit_uri: https://github.com/EmilStenstrom/django-components/edit/master/docs/
dev_addr: "127.0.0.1:9000"
site_dir: site
docs_dir: docs
watch:
- src
- docs
- mkdocs.yml
- README.md
- scripts
validation:
# We get warnings as we use literate-nav
omitted_files: ignore
absolute_links: warn
unrecognized_links: info
theme:
name: "material"
custom_dir: docs/overrides
features:
- content.action.edit
- content.action.view
- content.code.annotate
- content.code.copy
- content.tabs.link
- navigation.expand
- navigation.footer
- navigation.instant
- navigation.instant.progress
- navigation.indexes
- navigation.sections
- navigation.tracking
- navigation.top
- search.highlight
- search.share
- search.suggest
- toc.follow
icon:
repo: fontawesome/brands/github
palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: teal
toggle:
icon: material/weather-night
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: teal
toggle:
icon: material/weather-sunny
name: Switch to light mode
extra:
version:
provider: mike
default:
- dev
alias: true
social:
- icon: fontawesome/brands/github
link: https://github.com/EmilStenstrom/django-components
- icon: fontawesome/brands/python
link: https://pypi.org/project/django-components/
markdown_extensions:
abbr: {}
admonition: {}
attr_list: {}
codehilite: {}
def_list: {}
tables: {}
md_in_html: {}
# mdx_truly_sane_lists: {}
pymdownx.magiclink:
repo_url_shorthand: true
user: EmilStenstrom
repo: django-components
pymdownx.details: {}
pymdownx.highlight:
anchor_linenums: true
pymdownx.inlinehilite: {}
pymdownx.snippets:
check_paths: true
base_path: .
pymdownx.tabbed:
alternate_style: true
pymdownx.superfences:
pymdownx.tasklist:
custom_checkbox: true
pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
toc:
permalink: "¤"
plugins:
- autorefs
- include-markdown:
# Default is django style...
opening_tag: "{!"
closing_tag: "!}"
- gen-files:
scripts:
- scripts/gen_ref_nav.py
- literate-nav:
nav_file: SUMMARY.md
tab_length: 2
- git-revision-date-localized:
enabled: !ENV [CI, false]
type: timeago
exclude:
- reference/*
- changelog.md
- code_of_conduct.md
- license.md
- git-authors:
enabled: !ENV [CI, false]
exclude:
- reference/*
- changelog.md
- code_of_conduct.md
- license.md
- markdown-exec
# - toc-md:
- search
- social:
enabled: !ENV [CI, false]
- mike:
canonical_version: "latest"
version_selector: true
- redirects:
redirect_maps:
- minify:
minify_html: true
- mkdocstrings:
handlers:
python:
import:
- https://docs.python.org/3.12/objects.inv
- url: https://docs.djangoproject.com/en/5.0/_objects/
base_url: https://docs.djangoproject.com/en/5.0/
domains: [std, py]
paths: [src] # search packages in the src folder
options:
docstring_options:
ignore_init_summary: true
docstring_section_style: list
filters: ["!^_"]
heading_level: 1
inherited_members: true
merge_init_into_class: true
preload_modules: [mkdocstrings]
separate_signature: true
show_root_heading: true
show_root_full_path: false
show_signature_annotations: true
show_symbol_type_heading: true
show_symbol_type_toc: true
signature_crossrefs: true
summary: true
unwrap_annotated: true
# show_root_heading: true
# show_signature_annotations: true
show_if_no_docstring: false
# separate_signature: true
line_length: 140
# merge_init_into_class: true
show_submodules: true
docstring_style: google
# docstring_options:
# ignore_init_summary: true