Skip to content

Commit 5bc4ef8

Browse files
committed
feat(mkdocs.yml requirements.txt): add expandable navbar and page modified timestamp
1 parent 506bd2d commit 5bc4ef8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

mkdocs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ theme:
106106
- navigation.tabs # 页面上方的标签页
107107
- navigation.tracking # 页面滚动时,导航栏高亮当前页面
108108
- navigation.sections # 使导航栏分块
109-
- navigation.expand # 默认展开导航
110-
- navigation.prune # 只渲染当前页面的导航
109+
# - navigation.expand # 默认展开导航
110+
# - navigation.prune # 只渲染当前页面的导航
111111
- toc.follow # 滚动的时候侧边栏自动跟随
112112
- navigation.top # 返回顶部按钮
113113
- search.suggest # 补全建议
@@ -155,6 +155,7 @@ plugins:
155155
# Minify html, speed up the loading speed
156156
- minify:
157157
minify_html: true
158+
- git-revision-date-localized
158159

159160
extra_javascript:
160161
# 使用mathjax进行数学公式渲染
@@ -165,6 +166,7 @@ markdown_extensions:
165166
- attr_list
166167
- admonition # 那些提醒
167168
- footnotes # 脚注
169+
- toc
168170
- pymdownx.details
169171
- pymdownx.emoji:
170172
emoji_generator: !!python/name:pymdownx.emoji.to_svg

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ mkdocs-material==9.5.28
33
mkdocs-material-extensions==1.3.1
44
mkdocs-minify-plugin==0.8.0
55
mkdocs-static-i18n==1.2.3
6+
mkdocs-git-revision-date-localized-plugin==1.2.6
67
pymdown-extensions==10.8.1

0 commit comments

Comments
 (0)