forked from DCC-EX/mkdocs-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmkdocs.yml
More file actions
206 lines (194 loc) · 7.31 KB
/
mkdocs.yml
File metadata and controls
206 lines (194 loc) · 7.31 KB
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
# Site information
site_name: DCC-EX Model Train Control, Animation, and Automation
site_url: https://dcc-ex.com/mkdocs-test/
site_description: Initial testing of MkDocs for DCC-EX documentation
repo_url: https://github.com/DCC-EX/mkdocs-test
repo_name: GitHub
edit_uri: edit/main/docs/
# Validation options
validation:
links:
absolute_links: relative_to_docs
anchors: warn
unrecognized_links: warn
# Theme configuration
theme:
name: material
custom_dir: overrides
favicon: _static/images/logos/favicon.ico
logo: _static/images/logos/logo_with_border.png
language: en
icon:
repo: fontawesome/brands/github
features:
- content.code.select # Select for code blocks
- content.code.copy # Copy button for code blocks
- content.code.annotate # Annotate code blocks
- content.tooltips # Add tooltips
- header.autohide # Autohide header on longer pages
- navigation.footer # Show previous/next buttons in footer
- navigation.path
# - navigation.sections
- navigation.tabs # Top level navigation on header for tabs
- navigation.top # Show back to top button when scrolling up
- navigation.tracking # Auto update URL in address bar
# - navigation.indexes # Enable section indexes
- navigation.instant
- navigation.instant.progress
- search.highlight # Highlight search results
- search.share # Enable share button for copying search links
- search.suggest # Provide search suggestions
- toc.follow # Auto scroll sidebar to show active anchor
palette:
- scheme: dccex-light
toggle:
icon: material/weather-sunny
name: Switch to dark mode
- scheme: dccex-dark
toggle:
icon: material/weather-night
name: Switch to light mode
# Extra CSS attributes for colour scheme etc.
extra_css:
- _static/css/dccex_theme.css
# Extra JavaScript
extra_javascript:
- _static/scripts/search-helper.js
- _static/scripts/platform.js
- _static/scripts/ex-installer-run-helper.js
- _static/scripts/clickable-cards.js
- _static/scripts/legacy-docs-new-tab.js
extra:
social:
- icon: fontawesome/brands/discord # Discord link in footer
link: https://discord.gg/y2sB4Fp
name: Join us on Discord
# consent: # Deal with cookies we may use related to Google analytics etc.
# actions:
# - accept
# - manage
# - reject
# title: Who likes cookies?
# description: >-
# We use delicious cookies to monitor repeated visits and preferences, primarily to measure the effectiveness of our
# documentation and whether users find what they're looking for.
# With your consent, we'd like to keep making our documentation better.
# Navigation structure
# This is provided by the awesome-nav plugin instead (see .nav.yml in each directory)
# nav:
# - Home: 'index.md'
# Plugins
plugins:
- search: # Material client-side search using Lunr.js
separator: '[,;\$\|\-\.\s\[\]\(\)\{\}"]+'
- git-revision-date-localized # Auto date each page from last Git commit
- awesome-nav # Enable awesome-nav plugin to support dynamic page structure
- blog: # Enable built-in blog
blog_dir: news
blog_toc: true
post_dir: "{blog}/articles"
post_date_format: medium
post_excerpt: required
post_url_date_format: yyyy/MM
archive: false
categories: true
categories_toc: true
categories_allowed:
- General DCC-EX News
- EX-CommandStation
- EX-Installer
- EX-IOExpander
- EX-Turntable
- EX-FastClock
- EX-DCCInspector
- EX-CSB1
- EX-Motorshield8874
- EX-WiFiShield8266
- DCCEXProtocol
- rss: # Enable RSS feed for the blog/DCC-EX News articles
match_path: "news/articles/.*"
date_from_meta:
as_creation: "date"
as_update: "git"
datetime_format: "%Y-%m-%d"
feed_description: Latest news and updates from the DCC-EX team
feed_title: DCC-EX News
image: _static/images/logos/favicon.ico
pretty_print: true
- open-in-new-tab: # Automatically causes external links to open in a new tab, and shows an arrow icon
add_icon: true
- meta # Enable using .meta.yml to set metadata on all docs in a directory
- scoped-nav # Enable scoped navigation to update previous/next buttons correctly
- latest-news: # Enable including the latest news excerpts in markdown
count: 3
list-class: news-headline-list
# Copyright info
copyright: |
© 2025 <a href="https://dcc-ex.com/" target="_blank" rel="noopener">DCC-EX</a>
# Markdown extensions to enhance content
markdown_extensions:
- admonition
- attr_list # Enabled setting attributes in markdown eg. image width
- def_list # Enable definition/descriptions lists, required by ezglossary
- md_in_html # Enable markdown in embedded HTML
- pymdownx.betterem # Improved detection for emphasis in text
- pymdownx.blocks.caption # Enable captions for images, tables, and code blocks
- pymdownx.details
- pymdownx.caret # Enable sub/superscript
- pymdownx.tilde # Enable strikethrough
- pymdownx.mark # Enable highlight
- pymdownx.extra # markdown in div
- pymdownx.emoji: # Enable emojis
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.snippets:
check_paths: true
- pymdownx.highlight: # Syntax highlighting of code
anchor_linenums: false
pygments_lang_class: true
- pymdownx.superfences: # Enhanced code blocks
custom_fences:
- name: mermaid # Enable Mermaid JS diagrams
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tasklist: # Task list with checkbox capability
custom_checkbox: true
clickable_checkbox: true
- toc: # Table of Contents extension
permalink: true # Add a permanent link to headings
- footnotes # Standard footnotes
watch:
- snippets
- docs
not_in_nav:
'**/*_not_in_nav.md'
# List of other extensions to experiment with
# - admonition # For callouts (Note, Warning, Tip, etc.)
# - attr_list # For adding attributes to Markdown elements (e.g., for custom styles)
# - def_list
# - md_in_html # Allows Markdown syntax inside raw HTML blocks
# - footnotes # Standard footnotes
# - pymdownx.details # For collapsible content blocks (e.g., accordions)
# - pymdownx.caret # For superscript (e.g., I^2^C)
# - pymdownx.tilde # For subscript (e.g., H~2~O)
# - pymdownx.mark # For highlighting text ==like this==
# - pymdownx.critic # For revision markups
# - pymdownx.superfences: # Enhanced code blocks
# custom_fences:
# - name: mermaid # For diagrams using Mermaid-JS syntax
# class: mermaid
# format: !!python/name:mermaid2.fence_mermaid_custom
# - pymdownx.tabbed: # For creating tabbed content
# alternate_style: true
# - pymdownx.highlight: # For syntax highlighting of code
# anchor_linenums: true
# line_spans: __span
# pygments_lang_class: true
# - pymdownx.inlinehilite # For inline code highlighting
# - pymdownx.snippets # For including content from other files (simple includes)
# - toc: # Table of Contents extension
# permalink: true # Add a permanent link to headings