-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmkdocs-html.yml
120 lines (112 loc) · 3.14 KB
/
mkdocs-html.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
# Configuration
theme:
name: material
language: en
direction: ltr
include_search_page: false
search_index_only: true
features:
- content.code.annotate
- content.tabs.link
- header.autohide
- navigation.expand
- navigation.indexes
- navigation.instant
- navigation.sections
- navigation.tabs
- navigation.tabs.sticky
- navigation.top
- navigation.tracking
- search.highlight
- search.share
- search.suggest
- toc.follow
palette:
- scheme: default
primary: blue
accent: grey
toggle:
icon: material/brightness-4
name: Switch to dark mode
- scheme: slate
primary: blue
accent: grey
toggle:
icon: material/brightness-6
name: Switch to light mode
font:
text: Roboto
code: Roboto Mono
favicon: assets/logo.png
icon:
logo: material/book
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/unicef-drp/
- icon: fontawesome/brands/twitter
link: https://twitter.com/UNICEF
- icon: fontawesome/brands/facebook
link: https://www.facebook.com/unicef/
- icon: fontawesome/solid/earth-africa
link: https://www.unicef.org/
extra_css:
- css/print.css
extra_javascript:
- https://unpkg.com/[email protected]/dist/tablesort.min.js
- js/tablesort.js
# Needed for the hooks below to work
plugins:
- search
- git-revision-date-localized
- mkdocs-video
- mkdocstrings:
handlers:
python:
paths: [../django_project]
import:
- https://docs.python.org/3/objects.inv
- https://mkdocstrings.github.io/autorefs/objects.inv
options:
# Lots of other nice options can be found at
# https://mkdocstrings.github.io/python/usage/
docstring_style: sphinx
heading_level: 2
show_bases: true
show_signature: true
separate_signature: true
show_signature_annotations: true
show_source: true
show_root_heading: true
show_root_full_path: true
show_root_members_full_path: true
merge_init_into_class: true
docstring_options:
ignore_init_summary: false
- redirects:
redirect_maps:
#see https://github.com/mkdocs/mkdocs-redirects/tree/master#using
#'old.md': 'new.md'
#'old/file.md': 'new/file.md'
#'some_file.md': 'http://external.url.com/foobar'
- enumerate-headings:
toc_depth: 3
strict: true
increment_across_pages: true
include:
- "*"
exclude:
- index.md
- user/index.md
- administrator/index.md
- developer/index.md
- developer/manual/*.md
- devops/index.md
restart_increment_after:
- second_section.md
# Hook to add a uuid to every anchor
# see also hook.py and https://github.com/squidfunk/mkdocs-material/discussions/3758#discussioncomment-4397373
# Note that although the above link implies you can use UUIDs, you have to use numeric IDS not UUIDS
hooks:
- ./uuid_redirects_hook.py
- ./python_manual_hook.py