add docs/.vitepress/config.mts
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
|
||||
// 本地运行用 '/';部署到 GitHub Pages 等项目子路径时,通过环境变量 VITEPRESS_BASE 覆盖,
|
||||
// 例如 VITEPRESS_BASE=/GuideBook/ pnpm docs:build
|
||||
const base = process.env.VITEPRESS_BASE || '/'
|
||||
|
||||
export default defineConfig({
|
||||
lang: 'zh-CN',
|
||||
title: 'Digi Agent Builder 3.0',
|
||||
description: '鼎捷雅典娜 IndepthAI · 智能体开发示例指导书',
|
||||
base,
|
||||
cleanUrls: true,
|
||||
head: [
|
||||
['meta', { name: 'theme-color', content: '#1c5fd4' }],
|
||||
['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1' }],
|
||||
['link', { rel: 'icon', type: 'image/png', href: `${base}favicon.png` }],
|
||||
['link', { rel: 'shortcut icon', type: 'image/png', href: `${base}favicon.png` }]
|
||||
],
|
||||
|
||||
themeConfig: {
|
||||
siteTitle: 'Digi Agent Builder 3.0 指导书',
|
||||
|
||||
nav: [
|
||||
{ text: '首页', link: '/' },
|
||||
{ text: '架构设计', link: '/guide/' },
|
||||
{ text: '开发实战', link: '/guide/scenario' },
|
||||
{
|
||||
text: '开发平台',
|
||||
items: [
|
||||
{ text: 'Web 端', link: 'https://kai-wis.apps.digiwincloud.com.cn/' }
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
sidebar: {
|
||||
'/guide/': [
|
||||
{
|
||||
text: '第一章 智能体架构介绍',
|
||||
items: [
|
||||
{ text: '1.1-1.2 平台简介与架构概览', link: '/guide/' },
|
||||
{ text: '1.3.1 如何登录智能体开发平台', link: '/guide/environment-login' },
|
||||
{ text: '1.3.2 界面关键功能简介', link: '/guide/environment-ui' },
|
||||
{ text: '1.3.3 前置文档数据准备', link: '/guide/environment-prepare' }
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '第二章 企业智能体开发实战',
|
||||
collapsed: false,
|
||||
items: [
|
||||
{ text: '2.1 企业智能体示例场景说明', link: '/guide/scenario' },
|
||||
{ text: '2.2.1 工作区环境准备', link: '/guide/workspace' },
|
||||
{ text: '2.2.2 项目搭建及方案生成', link: '/guide/agent-dev' },
|
||||
{ text: '2.2.3 报价流程编排技能开发', link: '/guide/skill' },
|
||||
{ text: '2.2.4.1 自主推理智能体', link: '/guide/reasoning-agent' },
|
||||
{ text: '2.2.4.2 会话流智能体', link: '/guide/chatflow-agent' }
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '附录',
|
||||
items: [{ text: '附录 1-2 智能体测试结果', link: '/guide/appendix' }]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
outline: { level: [2, 4], label: '本页目录' },
|
||||
search: { provider: 'local' },
|
||||
|
||||
docFooter: { prev: '上一页', next: '下一页' },
|
||||
returnToTopLabel: '返回顶部',
|
||||
sidebarMenuLabel: '目录',
|
||||
darkModeSwitchLabel: '主题',
|
||||
lightModeSwitchTitle: '切换到浅色模式',
|
||||
darkModeSwitchTitle: '切换到深色模式',
|
||||
|
||||
footer: {
|
||||
message: '本指导书用于 Digi Agent Builder 3.0 智能体开发示例教学',
|
||||
copyright: 'Copyright © 2026 鼎捷数智'
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user