Files
docs/mkdocs.yml
T
2026-08-25 04:14:22 +00:00

101 lines
2.7 KiB
YAML

site_name: 文档站
site_description: 个人知识文档站
site_author: wonder
theme:
name: material
language: zh
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/brightness-7
name: 切换到深色模式
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: indigo
accent: indigo
toggle:
icon: material/brightness-4
name: 切换到浅色模式
features:
- navigation.instant # 即时加载(SPA 风格)
- navigation.tracking # URL 跟踪锚点
- navigation.tabs # 顶部标签
- navigation.sections # 节分组
- navigation.expand # 默认展开侧边栏
- navigation.indexes # 节首页
- navigation.top # 返回顶部按钮
- search.suggest # 搜索建议
- search.highlight # 搜索高亮
- search.share # 搜索分享
- content.code.copy # 代码一键复制
- content.code.annotate # 代码注释
- content.tabs.link # 内容标签联动
plugins:
- search:
lang:
- zh
- en
markdown_extensions:
- abbr
- admonition
- attr_list
- def_list
- footnotes
- md_in_html
- toc:
permalink: true
- pymdownx.arithmatex:
generic: true
- pymdownx.betterem:
smart_enable: all
- pymdownx.caret
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.mark
- pymdownx.smartsymbols
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde
extra_javascript:
- javascripts/mathjax.js
- https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js
nav:
- 首页: index.md
- 项目:
- project/index.md
- 架构:
- architecture/index.md
- 缓存:
- architecture/cache/index.md
- 缓存击穿雪崩穿透: architecture/cache/cache-breakdown-avalanche-penetration.md
- 算法:
- algorithm/index.md
- 布隆过滤器: algorithm/bloom-filter.md
- 布隆过滤器删除问题: algorithm/bloom-filter-deletion.md
- 计数布隆过滤器: algorithm/counting-bloom-filter.md
- 布谷鸟过滤器: algorithm/cuckoo-filter.md
- HeavyKeeper: algorithm/heavykeeper.md