diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 764a167f..1464e6e0 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -4,16 +4,49 @@ import lightbox from "vitepress-plugin-lightbox" // https://vitepress.dev/reference/site-config export default defineConfig({ - title: "certd", - description: "certd帮助文档", + title: "Certd", + description: "Certd帮助文档,Certd是一款全自动证书管理工具", markdown: { config: (md) => { // Use lightbox plugin md.use(lightbox, {}); }, }, + head: [ + // [ + // 'meta', + // { + // name: 'viewport', + // content: + // 'width=device-width,initial-scale=1,minimfast-cum-scale=1.0,maximum-scale=1.0,user-scalable=no', + // }, + // ], + ['meta', {name: 'keywords', content: '证书自动申请、证书自动更新、证书自动续期、证书自动续签、证书管理工具、Certd、SSL证书自动部署、证书自动化'}], + ['link', {rel: 'icon', href: '/favicon.ico'}], + ], themeConfig: { - logo: '/images/logo/logo.svg', + logo: '/static/logo/logo.svg', + search: { + provider: 'local', + options: { + detailedView: true, + translations: { + button: { + buttonText: '搜索文档', + buttonAriaLabel: '搜索文档' + }, + modal: { + noResultsText: '无法找到相关结果', + resetButtonTitle: '清除查询条件', + footer: { + selectText: '选择', + closeText: '关闭', + navigateText: '切换' + } + } + } + } + }, // https://vitepress.dev/reference/default-theme-config nav: [ {text: '首页', link: '/'}, @@ -49,12 +82,12 @@ export default defineConfig({ ] }, { - text: '使用说明', + text: '常见问题', items: [ {text: '群晖证书部署', link: '/guide/use/synology/'}, - {text: '腾讯云', link: '/guide/use/tencent/'}, + {text: '腾讯云密钥获取', link: '/guide/use/tencent/'}, {text: '连接windows主机', link: '/guide/use/host/windows.md'}, - {text: 'google EAB', link: '/guide/use/google/'}, + {text: 'Google EAB获取', link: '/guide/use/google/'}, {text: '忘记密码', link: '/guide/use/forgotpasswd/'}, {text: '数据备份', link: '/guide/use/backup/'}, ] diff --git a/docs/guide/install/docker/index.md b/docs/guide/install/docker/index.md index abb91f21..4c33219d 100644 --- a/docs/guide/install/docker/index.md +++ b/docs/guide/install/docker/index.md @@ -66,4 +66,4 @@ docker compose up -d ``` > 数据默认存在`/data/certd`目录下,不用担心数据丢失 -> 建议配置一条[数据库备份流水线](../use/backup/) 自动备份 +> 建议配置一条[数据库备份流水线](../../use/backup/) 自动备份 diff --git a/docs/guide/install/source/index.md b/docs/guide/install/source/index.md index 0a48ae1c..757e4fb8 100644 --- a/docs/guide/install/source/index.md +++ b/docs/guide/install/source/index.md @@ -34,7 +34,7 @@ kill -9 $(lsof -t -i:7001) ./start.sh ``` > 数据默认保存在 `./packages/ui/certd-server/data` 目录下 -> 建议配置一条[数据库备份流水线](../use/backup/) 自动备份 +> 建议配置一条[数据库备份流水线](../../use/backup/) 自动备份 diff --git a/docs/index.md b/docs/index.md index bb1e0d3b..48866570 100644 --- a/docs/index.md +++ b/docs/index.md @@ -7,7 +7,7 @@ hero: text: "全自动申请、部署证书管理工具" tagline: 让你的网站证书永不过期 image: - src: ./images/logo/logo.svg + src: /static/logo/logo.svg alt: Certd actions: - theme: brand diff --git a/docs/images/logo/logo.svg b/docs/public/static/logo/logo.svg similarity index 100% rename from docs/images/logo/logo.svg rename to docs/public/static/logo/logo.svg