docs: 更新文档配置并添加启动脚本
- 修改 mkdocs.yml 文件,调整文档结构和主题设置 - 新增 start.py脚本,用于启动 MkDocs服务器
This commit is contained in:
parent
cb73a84a97
commit
770217cd33
BIN
docs/images/wallhaven-o35exm.jpg
Normal file
BIN
docs/images/wallhaven-o35exm.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
26
docs/stylesheets/background.css
Normal file
26
docs/stylesheets/background.css
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
/* 背景图 + 模糊 + 透明效果 */
|
||||||
|
body::before {
|
||||||
|
content: "";
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
background-image: url("../images/wallhaven-o35exm.jpg"); /* 替换为你的图片路径 */
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
filter: blur(8px) brightness(0.8); /* 模糊 + 调暗一点更清晰 */
|
||||||
|
z-index: -2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 主体半透明,让背景透出来 */
|
||||||
|
.md-main {
|
||||||
|
background-color: rgba(255, 255, 255, 0.6); /* light mode 半透明白 */
|
||||||
|
backdrop-filter: blur(2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-md-color-scheme="slate"] .md-main {
|
||||||
|
background-color: rgba(0, 0, 0, 0.3); /* dark mode 半透明黑 */
|
||||||
|
backdrop-filter: blur(2px);
|
||||||
|
}
|
||||||
13
mkdocs.yml
13
mkdocs.yml
@ -1,5 +1,5 @@
|
|||||||
site_name: hugemaker
|
site_name: 知识总结
|
||||||
site_description: hugemaker
|
site_description: 知识总结文档
|
||||||
site_author: hugemaker
|
site_author: hugemaker
|
||||||
# site_url: # 请在这里填写您的网站URL
|
# site_url: # 请在这里填写您的网站URL
|
||||||
strict: false
|
strict: false
|
||||||
@ -28,8 +28,8 @@ theme:
|
|||||||
name: 切换到夜间模式
|
name: 切换到夜间模式
|
||||||
- media: "(prefers-color-scheme: dark)"
|
- media: "(prefers-color-scheme: dark)"
|
||||||
scheme: slate
|
scheme: slate
|
||||||
primary: blue-grey
|
primary: grey # ← 主色调设为灰色
|
||||||
accent: cyan
|
accent: blue-grey # ← 强调色为蓝灰色
|
||||||
toggle:
|
toggle:
|
||||||
icon: material/weather-night
|
icon: material/weather-night
|
||||||
name: 切换到日间模式
|
name: 切换到日间模式
|
||||||
@ -76,4 +76,7 @@ markdown_extensions:
|
|||||||
alternate_style: true
|
alternate_style: true
|
||||||
|
|
||||||
extra_javascript:
|
extra_javascript:
|
||||||
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
|
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
|
||||||
|
|
||||||
|
extra_css:
|
||||||
|
- stylesheets/background.css
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user