104 lines
4.1 KiB
TypeScript
104 lines
4.1 KiB
TypeScript
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: {
|
|
logo: '/favicon.png',
|
|
siteTitle: 'Digi Agent Builder 指导书',
|
|
|
|
nav: [
|
|
{ text: '首页', link: '/' },
|
|
{ text: '架构设计', link: '/guide/' },
|
|
{ text: '开发实战', link: '/guide/super-agent' },
|
|
{
|
|
text: '开发平台',
|
|
items: [
|
|
{ text: 'Web 端', link: 'https://kai-wis.apps.digiwincloud.com.cn/' }
|
|
]
|
|
}
|
|
],
|
|
|
|
sidebar: {
|
|
'/guide/': [
|
|
{
|
|
text: '第一章 智能体套件架构介绍',
|
|
collapsed: false,
|
|
items: [
|
|
{ text: '1.1 平台简介与架构概览', link: '/guide/' },
|
|
{ text: '1.2 如何登录 Agent Builder', link: '/guide/environment-login' },
|
|
{ text: '1.3 界面关键功能简介', link: '/guide/environment-ui' },
|
|
{ text: '1.4 前置文档数据准备', link: '/guide/environment-prepare' }
|
|
]
|
|
},
|
|
{
|
|
text: '第二章 超级智能体使用说明',
|
|
collapsed: false,
|
|
items: [
|
|
{ text: '2.1 什么是超级智能体', link: '/guide/super-agent' },
|
|
{ text: '2.2 基本功能概览', link: '/guide/super-agent-features' },
|
|
{ text: '2.3 智能报价场景体验', link: '/guide/super-agent-practice' },
|
|
{ text: '2.4 总结', link: '/guide/super-agent-summary' }
|
|
]
|
|
},
|
|
{
|
|
text: '第三章 智能报价场景实战',
|
|
collapsed: false,
|
|
items: [
|
|
{ text: '3.1 智能报价场景说明', link: '/guide/scenario' },
|
|
{ text: '3.2 工作区环境准备', link: '/guide/workspace' },
|
|
{ text: '3.3 项目搭建及方案生成', link: '/guide/agent-dev' },
|
|
{ text: '3.4 报价流程编排技能开发', link: '/guide/skill' },
|
|
{ text: '3.5 自主推理智能体', link: '/guide/reasoning-agent' },
|
|
{ text: '3.6 会话流智能体', link: '/guide/chatflow-agent' },
|
|
{ text: '附录 1-2 智能体测试结果', link: '/guide/appendix' }
|
|
]
|
|
},
|
|
// 第四章暂时隐藏(保留内容,需要时取消注释即可恢复)
|
|
// {
|
|
// text: '第四章 数据分析场景实战',
|
|
// collapsed: false,
|
|
// items: [
|
|
// { text: '4.1 数据分析场景说明', link: '/guide/data-scenario' },
|
|
// { text: '4.2 工作区环境准备', link: '/guide/data-workspace' },
|
|
// { text: '4.3 项目搭建及资料分析', link: '/guide/data-project' },
|
|
// { text: '4.4 数据分析技能开发', link: '/guide/data-skill' },
|
|
// { text: '4.5 数据分析智能体开发', link: '/guide/data-agent' },
|
|
// { text: '4.6 EIOSpace 运行智能体', link: '/guide/data-eiospace' },
|
|
// { text: '附录:异常问题处理示例', link: '/guide/data-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 鼎捷数智'
|
|
}
|
|
}
|
|
})
|