-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkdocs.yml
175 lines (159 loc) · 6.21 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
site_name: Robots Inside
site_url: https://robobe.github.io/ # must have the trailing slash
site_description: Guides, notes and useful stuff for learning robotics systems.
#
# Theme settings
#
theme:
# https://squidfunk.github.io/mkdocs-material/creating-your-site/#configuration
name: material
# https://squidfunk.github.io/mkdocs-material/customization/#extending-the-theme
custom_dir: overrides
# https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/
palette:
primary: white
accent: deep orange
# https://squidfunk.github.io/mkdocs-material/setup/changing-the-fonts/
font:
text: Noto Serif
code: Roboto Mono
# https://squidfunk.github.io/mkdocs-material/setup/changing-the-logo-and-icons/
icon:
logo: fontawesome/solid/code
favicon: favicon.png
features:
# Navigation
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/
# - navigation.instant # some features may not work properly with XHR
- navigation.tracking # the URL changes with the active anchor
- navigation.tabs # first top-level folders are shown as tabs
# - navigation.tabs.sticky # tabs always show
# - navigation.sections # second-level folders are expanded
# - navigation.expand # all folders are expanded
- navigation.indexes # link an index page to its parent folder
- navigation.top # show the back-to-top button
# - toc.integrate # show the table of contents in the navigation panel
# Search
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-search
- search.suggest # display the likeliest completion for the last word
- search.highlight # highlight all occurrences
- search.share # show a share button of the current search
# Header
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-the-header/
# - header.autohide # hide the post title when scroll down
# Content
# https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#adding-annotations
- content.code.annotate # add comment to code blocks
#
# Plugins
#
plugins:
- search # must be included at the first place
# - mkdocs-jupyter
- mkdocs-video
- awesome-pages:
#
# collapse_single_pages: true # replaced by navigation.indexes
# - section-index # must be after awesome-pages, replaced by navigation.indexes
# - git-revision-date-localized:
# enable_creation_date: true
# fallback_to_build_date: true
# type: iso_date
# - encryptcontent:
# hljs: false
# arithmatex: false
# mermaid2: false
# password_button: true
# remember_password: true
# default_expire_dalay: 24
# reload_scripts:
# - "./assets/extra.js"
# - exclude:
# glob:
# - '*/exclude/*'
# regex:
# - '.*\[exclude\].*'
# - pdf-with-js:
# enable: false # should enable only when need PDF files
# add_download_button: false
# display_header_footer: true
# header_template: >-
# <div style="font-size:8px; margin:auto; color:lightgray;">
# <span class="title"></span>
# </div>
# footer_template: >-
# <div style="font-size:8px; margin:auto; color:lightgray;">
# Page <span class="pageNumber"></span> of
# <span class="totalPages"></span>
# </div>
#
# Extensions
#
markdown_extensions:
#
# Python Markdown
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/
#
- abbr # add a small tooltip to elements
- admonition # add call-out blocks
- attr_list # allow to add HTML attributes and CSS classes
- def_list # add description lists
- footnotes # define inline footnotes
- meta # attach arbitrary key-value pairs to a document
- md_in_html # allow to write Markdown inside HTML elements
- tables # create tables in Markdown
- toc: # generate a table of contents from documents
permalink: '#' # anchor
toc_depth: 4 # header 1 to header 4
slugify: !!python/name:pymdownx.slugs.uslugify # convert title to html-compatible text
- sane_lists # make better lists
- smarty: # convert some special characters
smart_angled_quotes: true
#
# Python Markdown Extensions
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/
#
- pymdownx.arithmatex: # render math equations
generic: true
# - pymdownx.betterem: # improve the detection of Markup to emphasize text in Markdown
# smart_enable: all
- pymdownx.caret # define superscript
- pymdownx.mark # highlight text
- pymdownx.tilde # define subscript
- pymdownx.critic # track changes
- pymdownx.details # add collapsible call-outs
- pymdownx.emoji: # add inlines bundled and custom icons and emojis
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
- pymdownx.superfences # define code blocks and nesting of code
- pymdownx.highlight: # highlight of code blocks
linenums_style: pymdownx-inline
# anchor_linenums: true # create anchor link on each line of code
- pymdownx.inlinehilite # highlight inline code blocks
- pymdownx.smartsymbols # convert some sequences of characters into their corresponding symbols
- pymdownx.snippets # embed content from arbitrary files into a document
- pymdownx.tabbed: # group related content and code blocks under accessible tabs
alternate_style: true
- pymdownx.tasklist: # define list of task with checkbox
custom_checkbox: true
- pymdownx.escapeall:
hardbreak: true # use \ to create new line
nbsp: true # use \<space> to create
# - pymdownx.keys # syntax ++ctrl+c++ does not look clear in MD document
#
# Extra extensions
#
# - markdown_captions # add caption to figures
- customblocks # use ::: to create a new <div>
# - cell_row_span # merge cells in a table
# Custom styles and scripts
#
extra_css:
- assets/view-bigimg.css
- assets/extra.css
extra_javascript:
- assets/mathjax.js # must be before mathjax
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
- assets/view-bigimg.js
- assets/extra.js