Skip to content

Commit 946f040

Browse files
author
dompling
committed
fix
1 parent ea103fe commit 946f040

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mkdocs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ site_description: TrollScript 官方文档与 API 参考
55
theme:
66
name: material
77
language: zh
8+
logo: AppIcon.png # 导航栏左上角的图标
9+
favicon: AppIcon.png # 浏览器标签页的小图标
810
palette:
911
# 自动切换深色/浅色模式
1012
- media: "(prefers-color-scheme: light)"
@@ -23,14 +25,14 @@ theme:
2325
name: 切换至浅色模式
2426
features:
2527
- navigation.instant # 页面即时加载 (SPA 体验)
26-
- navigation.tabs # 顶部标签页导航
2728
- navigation.tracking # 锚点跟随
2829
- content.code.copy # 代码块一键复制
2930
- search.suggest # 搜索建议
3031
- search.highlight # 搜索关键词高亮
3132
- navigation.sections # 使左侧菜单以“分组”形式显示,层级感更强
3233
- navigation.expand # 默认展开所有左侧菜单项
3334
- navigation.index # 点击父级菜单时直接跳转到该目录下的索引页
35+
- toc.integrate
3436

3537
nav:
3638
- 介绍: README.md # 对应 docs/index.md
@@ -44,6 +46,8 @@ nav:
4446
- 常见问题: FAQ.md
4547

4648
markdown_extensions:
49+
- toc:
50+
permalink: true
4751
- admonition # 警告/提示框
4852
- pymdownx.details # 折叠详情
4953
- pymdownx.superfences # 嵌套代码块

0 commit comments

Comments
 (0)