feat: 初始化 VitePress Web 版指导书

- VitePress 1.6 站点(中文/搜索/侧边栏/品牌主题)
- 11 个 Markdown 页面,Step 表格结构化
- 88 张图压缩为 webp(45MB → 6MB)
- favicon + 下载资料包(mac/win)
- GitHub Pages 部署工作流
This commit is contained in:
2026-10-16 16:07:54 +08:00
commit 23a81acd2d
111 changed files with 3062 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import DefaultTheme from 'vitepress/theme'
import mediumZoom from 'medium-zoom'
import { onMounted, watch, nextTick } from 'vue'
import { useRoute } from 'vitepress'
import './custom.css'
export default {
extends: DefaultTheme,
setup() {
const route = useRoute()
const initZoom = () => {
// 所有正文图片支持点击放大查看
mediumZoom('.vp-doc img:not(.no-zoom)', {
background: 'rgba(15, 23, 42, 0.82)',
margin: 24
})
}
onMounted(() => nextTick(initZoom))
watch(() => route.path, () => nextTick(initZoom))
}
}