Skip to content

Commit 8249ebf

Browse files
committed
Enhance mkdocs configuration with recommended plugins and markdown extensions
- Added several plugins to improve user experience, SEO, and maintainability, including awesome-pages, git-revision-date-localized, minify, redirects, section-index, glightbox, and mermaid2. - Introduced new markdown extensions for richer content, such as caret, snippets, and inlinehilite. - Included comments and placeholders for future enhancements while preserving existing configurations.
1 parent c9a7979 commit 8249ebf

File tree

3 files changed

+238
-10
lines changed

3 files changed

+238
-10
lines changed

mkdocs.yml

Lines changed: 49 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,24 +111,63 @@ nav:
111111
- "Introduction": "misc/introduction.md"
112112
- "Landing Page": "misc/landingpage.md"
113113

114+
# --- Enhancements for mkdocs.yml ---
115+
# 1. Add recommended plugins for better UX, SEO, and maintainability
116+
# 2. Add markdown extensions for richer content
117+
# 3. Add comments and placeholders for further improvements
118+
# 4. Do not remove existing configuration
119+
120+
# --- Recommended Plugins ---
121+
plugins:
122+
- search
123+
- awesome-pages # For easy page ordering and structure via .pages files
124+
- git-revision-date-localized # Show last updated date on each page
125+
- minify # Minify HTML output for faster load times
126+
- redirects # Avoid broken links when renaming/moving pages
127+
- section-index # Index pages for sections, improves navigation
128+
- glightbox # Beautiful image lightboxes
129+
- mermaid2 # Enhanced Mermaid diagram support
130+
# - sitemap # Uncomment for better SEO
131+
# - mike # Uncomment for versioned docs if needed
132+
133+
# --- Markdown Extensions ---
114134
markdown_extensions:
115135
- pymdownx.highlight
116-
- pymdownx.superfences:
117-
custom_fences:
118-
- name: mermaid
119-
class: mermaid
136+
- pymdownx.superfences
137+
- pymdownx.caret # Insertions, deletions, highlights
138+
- pymdownx.snippets # Reusable markdown snippets
139+
- pymdownx.inlinehilite # Inline code highlighting
140+
# - pymdownx.emoji # Emoji shortcodes (optional)
120141
- admonition
121142
- pymdownx.details
122143
- pymdownx.tabbed
123144
- attr_list
124145
- md_in_html
125-
- pymdownx.tasklist:
126-
custom_checkbox: true
127-
- pymdownx.arithmatex:
128-
generic: true
146+
- pymdownx.tasklist
147+
- pymdownx.arithmatex
129148

130-
plugins:
131-
- search
149+
# --- Navigation Suggestions ---
150+
# - Ensure each major section starts with an overview/landing page
151+
# - Use .pages files for custom ordering if awesome-pages is enabled
152+
# - Group long lists under collapsible headers for clarity
153+
154+
# --- Content & Authoring Utilities ---
155+
# - Add a CONTRIBUTING.md for contributor guidelines (see below)
156+
# - Add a 404.md for a custom not-found page (see below)
157+
# - Add a robots.txt for SEO control (see below)
158+
159+
# --- Example: Custom 404 Page ---
160+
# Create docs/404.md with helpful navigation links
161+
# Then add to nav if desired:
162+
# - '404': '404.md'
163+
164+
# --- Example: robots.txt ---
165+
# Place docs/robots.txt to control search engine indexing
166+
167+
# --- Example: CONTRIBUTING.md ---
168+
# Place CONTRIBUTING.md in the root or docs/ for contributor guidelines
169+
170+
# --- End Enhancements ---
132171

133172
extra_javascript:
134173
- https://unpkg.com/mermaid/dist/mermaid.min.js

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ dependencies = [
6262
"mkdocs>=1.6.1",
6363
"mkdocs-material>=9.6.14",
6464
"sqlmodel>=0.0.24",
65+
"mkdocs-awesome-pages-plugin>=2.9.1", # For easy page ordering and structure
66+
"mkdocs-git-revision-date-localized-plugin>=1.2.0", # Show last updated date on each page
67+
"mkdocs-minify-plugin>=0.7.1", # Minify HTML output
68+
"mkdocs-redirects>=1.2.0", # Avoid broken links
69+
"mkdocs-section-index>=0.3.5", # Section index pages
70+
"mkdocs-glightbox>=0.3.0", # Image lightboxes
71+
"mkdocs-mermaid2-plugin>=1.1.1", # Enhanced Mermaid support
72+
# "mkdocs-sitemap-plugin>=0.8.0", # Uncomment for SEO sitemap
73+
# "mike>=2.0.0", # Uncomment for versioned docs
6574
]
6675

6776
[build-system]

uv.lock

Lines changed: 180 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)