|
| 1 | +import { defineConfig } from 'vitepress' |
| 2 | + |
| 3 | +const base = process.env.VITEPRESS_BASE || '/' |
| 4 | +const versions = ['0.1.0'] |
| 5 | + |
| 6 | +const enVersionItems = versions.flatMap((version) => [ |
| 7 | + { text: `v${version} overview`, link: `/en/versions/v${version}/overview` }, |
| 8 | + { text: `v${version} specification`, link: `/en/versions/v${version}/specification` }, |
| 9 | + { text: `v${version} changelog`, link: `/en/versions/v${version}/changelog` } |
| 10 | +]) |
| 11 | + |
| 12 | +const zhVersionItems = versions.flatMap((version) => [ |
| 13 | + { text: `v${version} 概览`, link: `/zh/versions/v${version}/overview` }, |
| 14 | + { text: `v${version} 规范`, link: `/zh/versions/v${version}/specification` }, |
| 15 | + { text: `v${version} 变更记录`, link: `/zh/versions/v${version}/changelog` } |
| 16 | +]) |
| 17 | + |
| 18 | +const enNav = [ |
| 19 | + { text: 'Guide', link: '/en/what-is-agent-qc' }, |
| 20 | + { text: 'Specification', link: '/en/specification' }, |
| 21 | + { text: 'Examples', link: '/en/examples/lime-gui-change' }, |
| 22 | + { text: 'Ecosystem', link: '/en/reference/agent-ecosystem' }, |
| 23 | + { text: 'Version', items: [{ text: 'latest', link: '/en/specification' }, ...enVersionItems] } |
| 24 | +] |
| 25 | + |
| 26 | +const zhNav = [ |
| 27 | + { text: '指南', link: '/zh/what-is-agent-qc' }, |
| 28 | + { text: '规范', link: '/zh/specification' }, |
| 29 | + { text: '示例', link: '/zh/examples/lime-gui-change' }, |
| 30 | + { text: '生态', link: '/zh/reference/agent-ecosystem' }, |
| 31 | + { text: '版本', items: [{ text: 'latest', link: '/zh/specification' }, ...zhVersionItems] } |
| 32 | +] |
| 33 | + |
| 34 | +const enSidebar = [ |
| 35 | + { |
| 36 | + text: 'Start here', |
| 37 | + items: [ |
| 38 | + { text: 'Overview', link: '/en/' }, |
| 39 | + { text: 'What is Agent QC?', link: '/en/what-is-agent-qc' }, |
| 40 | + { text: 'Specification', link: '/en/specification' } |
| 41 | + ] |
| 42 | + }, |
| 43 | + { |
| 44 | + text: 'For test authors', |
| 45 | + items: [ |
| 46 | + { text: 'Quickstart', link: '/en/authoring/quickstart' }, |
| 47 | + { text: 'Lime gate matrix', link: '/en/authoring/lime-gate-matrix' }, |
| 48 | + { text: 'qcloop integration', link: '/en/authoring/qcloop-integration' }, |
| 49 | + { text: 'Evidence-driven verdicts', link: '/en/authoring/evidence-driven-verdicts' }, |
| 50 | + { text: 'Acceptance scenarios', link: '/en/authoring/acceptance-scenarios' } |
| 51 | + ] |
| 52 | + }, |
| 53 | + { |
| 54 | + text: 'Reference', |
| 55 | + items: [ |
| 56 | + { text: 'Glossary', link: '/en/reference/glossary' }, |
| 57 | + { text: 'Lime quality source index', link: '/en/reference/lime-quality-source-index' }, |
| 58 | + { text: 'Agent standards ecosystem', link: '/en/reference/agent-ecosystem' } |
| 59 | + ] |
| 60 | + }, |
| 61 | + { |
| 62 | + text: 'Examples', |
| 63 | + items: [ |
| 64 | + { text: 'Lime GUI change', link: '/en/examples/lime-gui-change' }, |
| 65 | + { text: 'Lime command bridge change', link: '/en/examples/lime-command-bridge-change' }, |
| 66 | + { text: 'qcloop batch', link: '/en/examples/qcloop-batch' } |
| 67 | + ] |
| 68 | + }, |
| 69 | + { text: 'Versions', items: enVersionItems } |
| 70 | +] |
| 71 | + |
| 72 | +const zhSidebar = [ |
| 73 | + { |
| 74 | + text: '开始', |
| 75 | + items: [ |
| 76 | + { text: '概览', link: '/zh/' }, |
| 77 | + { text: '什么是 Agent QC', link: '/zh/what-is-agent-qc' }, |
| 78 | + { text: '规范', link: '/zh/specification' } |
| 79 | + ] |
| 80 | + }, |
| 81 | + { |
| 82 | + text: '测试作者', |
| 83 | + items: [ |
| 84 | + { text: '快速开始', link: '/zh/authoring/quickstart' }, |
| 85 | + { text: 'Lime 门禁矩阵', link: '/zh/authoring/lime-gate-matrix' }, |
| 86 | + { text: 'qcloop 集成', link: '/zh/authoring/qcloop-integration' }, |
| 87 | + { text: '证据驱动判定', link: '/zh/authoring/evidence-driven-verdicts' }, |
| 88 | + { text: '验收场景', link: '/zh/authoring/acceptance-scenarios' } |
| 89 | + ] |
| 90 | + }, |
| 91 | + { |
| 92 | + text: '参考', |
| 93 | + items: [ |
| 94 | + { text: '术语表', link: '/zh/reference/glossary' }, |
| 95 | + { text: 'Lime 质量事实源索引', link: '/zh/reference/lime-quality-source-index' }, |
| 96 | + { text: 'Agent 标准生态', link: '/zh/reference/agent-ecosystem' } |
| 97 | + ] |
| 98 | + }, |
| 99 | + { |
| 100 | + text: '示例', |
| 101 | + items: [ |
| 102 | + { text: 'Lime GUI 改动', link: '/zh/examples/lime-gui-change' }, |
| 103 | + { text: 'Lime 命令桥接改动', link: '/zh/examples/lime-command-bridge-change' }, |
| 104 | + { text: 'qcloop 批次', link: '/zh/examples/qcloop-batch' } |
| 105 | + ] |
| 106 | + }, |
| 107 | + { text: '版本', items: zhVersionItems } |
| 108 | +] |
| 109 | + |
| 110 | +export default defineConfig({ |
| 111 | + base, |
| 112 | + title: 'Agent QC', |
| 113 | + description: 'A Lime-focused standard for evidence-driven agent quality control.', |
| 114 | + cleanUrls: true, |
| 115 | + lastUpdated: true, |
| 116 | + themeConfig: { |
| 117 | + logo: '/logo.svg', |
| 118 | + nav: [ |
| 119 | + { text: 'English', items: enNav }, |
| 120 | + { text: '中文', items: zhNav } |
| 121 | + ], |
| 122 | + sidebar: { |
| 123 | + '/en/': enSidebar, |
| 124 | + '/zh/': zhSidebar |
| 125 | + }, |
| 126 | + search: { provider: 'local' }, |
| 127 | + footer: { |
| 128 | + message: 'Draft Lime-focused standard for evidence-driven agent quality control.', |
| 129 | + copyright: 'Copyright © 2026' |
| 130 | + } |
| 131 | + }, |
| 132 | + markdown: { lineNumbers: true } |
| 133 | +}) |
0 commit comments