|
| 1 | +import { defineConfig } from "vitepress"; |
| 2 | + |
| 3 | +export default defineConfig({ |
| 4 | + lang: "zh-CN", |
| 5 | + title: "CleanBook", |
| 6 | + description: "智能书签清理与分类:规则 + ML + LLM(可选)", |
| 7 | + |
| 8 | + // GitHub Pages 部署时的 base 路径 |
| 9 | + base: "/bookmarks-cleaner/", |
| 10 | + |
| 11 | + lastUpdated: true, |
| 12 | + cleanUrls: true, |
| 13 | + |
| 14 | + head: [ |
| 15 | + ["link", { rel: "icon", type: "image/svg+xml", href: "/bookmarks-cleaner/favicon.svg" }], |
| 16 | + ], |
| 17 | + |
| 18 | + themeConfig: { |
| 19 | + logo: "/favicon.svg", |
| 20 | + |
| 21 | + nav: [ |
| 22 | + { text: "快速上手", link: "/quickstart_zh" }, |
| 23 | + { text: "设计文档", link: "/DESIGN" }, |
| 24 | + { |
| 25 | + text: "深入", |
| 26 | + items: [ |
| 27 | + { text: "系统架构", link: "/design/system_architecture" }, |
| 28 | + { text: "ML 设计", link: "/design/ml_design_zh" }, |
| 29 | + { text: "LLM 提示词", link: "/llm_prompt_templates" }, |
| 30 | + { text: "技术报告", link: "/technical_report" }, |
| 31 | + ], |
| 32 | + }, |
| 33 | + { |
| 34 | + text: "GitHub", |
| 35 | + link: "https://github.com/LessUp/bookmarks-cleaner", |
| 36 | + }, |
| 37 | + ], |
| 38 | + |
| 39 | + sidebar: [ |
| 40 | + { |
| 41 | + text: "入门", |
| 42 | + items: [ |
| 43 | + { text: "简介", link: "/" }, |
| 44 | + { text: "快速上手", link: "/quickstart_zh" }, |
| 45 | + ], |
| 46 | + }, |
| 47 | + { |
| 48 | + text: "设计", |
| 49 | + items: [ |
| 50 | + { text: "设计说明", link: "/DESIGN" }, |
| 51 | + { text: "系统架构", link: "/design/system_architecture" }, |
| 52 | + { text: "ML 设计", link: "/design/ml_design_zh" }, |
| 53 | + { text: "书签管理最佳实践", link: "/design/bookmark_best_practices_zh" }, |
| 54 | + ], |
| 55 | + }, |
| 56 | + { |
| 57 | + text: "进阶", |
| 58 | + items: [ |
| 59 | + { text: "LLM 提示词模板", link: "/llm_prompt_templates" }, |
| 60 | + { text: "技术报告", link: "/technical_report" }, |
| 61 | + { text: "开发指南", link: "/guides/development_guide" }, |
| 62 | + ], |
| 63 | + }, |
| 64 | + ], |
| 65 | + |
| 66 | + socialLinks: [ |
| 67 | + { icon: "github", link: "https://github.com/LessUp/bookmarks-cleaner" }, |
| 68 | + ], |
| 69 | + |
| 70 | + footer: { |
| 71 | + message: "MIT License", |
| 72 | + copyright: "© 2024-present LessUp", |
| 73 | + }, |
| 74 | + |
| 75 | + outline: { |
| 76 | + level: [2, 3], |
| 77 | + label: "页面导航", |
| 78 | + }, |
| 79 | + |
| 80 | + docFooter: { |
| 81 | + prev: "上一篇", |
| 82 | + next: "下一篇", |
| 83 | + }, |
| 84 | + |
| 85 | + lastUpdated: { |
| 86 | + text: "最后更新", |
| 87 | + }, |
| 88 | + |
| 89 | + search: { |
| 90 | + provider: "local", |
| 91 | + options: { |
| 92 | + translations: { |
| 93 | + button: { buttonText: "搜索文档", buttonAriaLabel: "搜索文档" }, |
| 94 | + modal: { |
| 95 | + noResultsText: "未找到相关结果", |
| 96 | + resetButtonTitle: "清除查询", |
| 97 | + footer: { selectText: "选择", navigateText: "切换", closeText: "关闭" }, |
| 98 | + }, |
| 99 | + }, |
| 100 | + }, |
| 101 | + }, |
| 102 | + }, |
| 103 | +}); |
0 commit comments