|
| 1 | +import { defineConfig } from "vitepress"; |
| 2 | + |
| 3 | +const base = process.env.DOCS_BASE || "/"; |
| 4 | + |
| 5 | +export default defineConfig({ |
| 6 | + title: "CQUT Auth", |
| 7 | + description: "重庆理工大学 OIDC Provider 文档", |
| 8 | + lang: "zh-CN", |
| 9 | + base, |
| 10 | + cleanUrls: true, |
| 11 | + lastUpdated: true, |
| 12 | + head: [ |
| 13 | + [ |
| 14 | + "link", |
| 15 | + { rel: "icon", href: `${base}logo.svg`, type: "image/svg+xml" }, |
| 16 | + ], |
| 17 | + ], |
| 18 | + themeConfig: { |
| 19 | + logo: "/logo.svg", |
| 20 | + nav: [ |
| 21 | + { text: "指南", link: "/guide/introduction" }, |
| 22 | + { text: "OIDC 接入", link: "/oidc/overview" }, |
| 23 | + { text: "部署", link: "/deploy/production" }, |
| 24 | + { |
| 25 | + text: "仓库", |
| 26 | + link: "https://github.com/CQUT-OpenProject/CQUT-Auth", |
| 27 | + }, |
| 28 | + ], |
| 29 | + sidebar: { |
| 30 | + "/guide/": [ |
| 31 | + { |
| 32 | + text: "指南", |
| 33 | + items: [ |
| 34 | + { text: "项目介绍", link: "/guide/introduction" }, |
| 35 | + { text: "本地启动", link: "/guide/getting-started" }, |
| 36 | + { text: "开发", link: "/guide/development" }, |
| 37 | + { text: "安全说明", link: "/guide/security" }, |
| 38 | + ], |
| 39 | + }, |
| 40 | + ], |
| 41 | + "/oidc/": [ |
| 42 | + { |
| 43 | + text: "OIDC 接入", |
| 44 | + items: [ |
| 45 | + { text: "端点与流程", link: "/oidc/overview" }, |
| 46 | + { text: "Scope 与 Claim", link: "/oidc/scopes" }, |
| 47 | + { text: "客户端生命周期", link: "/oidc/client-lifecycle" }, |
| 48 | + ], |
| 49 | + }, |
| 50 | + ], |
| 51 | + "/deploy/": [ |
| 52 | + { |
| 53 | + text: "部署", |
| 54 | + items: [ |
| 55 | + { text: "生产部署", link: "/deploy/production" }, |
| 56 | + { text: "配置说明", link: "/deploy/configuration" }, |
| 57 | + { text: "UIS / CAS", link: "/deploy/uis-cas" }, |
| 58 | + ], |
| 59 | + }, |
| 60 | + ], |
| 61 | + }, |
| 62 | + socialLinks: [ |
| 63 | + { |
| 64 | + icon: "github", |
| 65 | + link: "https://github.com/CQUT-OpenProject/CQUT-Auth", |
| 66 | + }, |
| 67 | + ], |
| 68 | + search: { |
| 69 | + provider: "local", |
| 70 | + }, |
| 71 | + editLink: { |
| 72 | + pattern: |
| 73 | + "https://github.com/CQUT-OpenProject/CQUT-Auth/edit/master/docs/:path", |
| 74 | + text: "在 GitHub 上编辑此页", |
| 75 | + }, |
| 76 | + footer: { |
| 77 | + message: "基于 MIT 协议开源", |
| 78 | + copyright: "Copyright © CQUT OpenProject", |
| 79 | + }, |
| 80 | + outline: { |
| 81 | + label: "本页目录", |
| 82 | + }, |
| 83 | + docFooter: { |
| 84 | + prev: "上一页", |
| 85 | + next: "下一页", |
| 86 | + }, |
| 87 | + lastUpdated: { |
| 88 | + text: "最后更新", |
| 89 | + }, |
| 90 | + }, |
| 91 | +}); |
0 commit comments