Files
brand/pages/mkdocs-base.yml
Claude 052ae825fa Sites: GitHub's heading ids, reference tables' first column unwrapped
Headings get the ids GitHub gives them (pymdownx's slugify, lower case),
so a docs/ link to a heading like "USB modems (`--usb`)" works on the
site as on GitHub. A reference table's option or key stays on one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn
2026-11-06 01:40:09 +00:00

64 lines
1.6 KiB
YAML

# The D-Modem sites' shared settings, for Zensical (which reads MkDocs'
# mkdocs.yml format). A repository's mkdocs.yml starts
# with "INHERIT: .site/mkdocs-base.yml" (tools/site.sh puts this file and the
# theme in .site/) and adds its site_name, site_url, repo_url, nav and
# extra.repo (its name, which picks its Rainbow Book colour).
theme:
name: material
custom_dir: .site/theme
logo: assets/suite/mark.svg
favicon: assets/suite/mark.svg
font: false
palette:
- scheme: slate
primary: custom
accent: custom
toggle:
icon: material/weather-sunny
name: Light mode
- scheme: default
primary: custom
accent: custom
toggle:
icon: material/weather-night
name: Dark mode
features:
- navigation.sections
- navigation.top
- navigation.footer
- navigation.indexes
- content.code.copy
- content.action.edit
- search.highlight
- toc.follow
icon:
repo: fontawesome/brands/github
edit_uri: edit/main/docs/
markdown_extensions:
- admonition
- attr_list
- def_list
- footnotes
- md_in_html
- tables
- toc:
permalink: true
# headings' ids as GitHub makes them ("USB modems (`--usb`)" is
# usb-modems---usb), so links that work on GitHub work on the site
slugify: !!python/object/apply:pymdownx.slugs.slugify
kwds:
case: lower
- pymdownx.details
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.inlinehilite
- pymdownx.superfences
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tasklist:
custom_checkbox: true
plugins:
- search
extra:
generator: false