refactor(guide): 调整第二章章节结构与站点标识

- workspace 页调整 2.2 / 2.2.1 标题层级,本页目录与侧边栏结构对齐
- 侧边栏新增「2.2 企业智能体开发详细步骤」入口,指向该页 2.2 锚点
- 新增 gb-chapter-lead 页面级样式:章节引导标题与 h1 同级、去掉上分隔线
- 导航栏 siteTitle 精简为「Digi Agent Builder 指导书」并加入 favicon 图标
This commit is contained in:
2026-10-16 17:42:43 +08:00
parent 23a81acd2d
commit a6b2ac3d3a
4 changed files with 39 additions and 9 deletions
+6 -1
View File
@@ -18,7 +18,8 @@ export default defineConfig({
],
themeConfig: {
siteTitle: 'Digi Agent Builder 3.0 指导书',
logo: '/favicon.png',
siteTitle: 'Digi Agent Builder 指导书',
nav: [
{ text: '首页', link: '/' },
@@ -48,6 +49,10 @@ export default defineConfig({
collapsed: false,
items: [
{ text: '2.1 企业智能体示例场景说明', link: '/guide/scenario' },
{
text: '2.2 企业智能体开发详细步骤',
link: '/guide/workspace#_2-2-企业智能体开发详细步骤'
},
{ text: '2.2.1 工作区环境准备', link: '/guide/workspace' },
{ text: '2.2.2 项目搭建及方案生成', link: '/guide/agent-dev' },
{ text: '2.2.3 报价流程编排技能开发', link: '/guide/skill' },
+24
View File
@@ -38,6 +38,24 @@
font-size: 1.18rem;
}
/* ---- 章节引导标题(如 2.2 / 2.2.1):与 h1 同款样式,并去掉上分隔线 ---- */
.gb-chapter-lead .vp-doc h2 {
margin-top: 2.4rem;
padding-top: 0;
border-top: none;
font-size: 1.9rem;
line-height: 1.3;
}
.gb-chapter-lead .vp-doc h2:first-of-type {
margin-top: 0;
}
/* ---- 该页 Step 标题:与其它页 h2 级 Step 保持一致的视觉尺寸 ---- */
.gb-chapter-lead .vp-doc h3[id^='step-'] {
font-size: 1.42rem;
}
/* ---- 正文图片:统一卡片化,响应式 ---- */
.vp-doc img {
display: block;
@@ -127,6 +145,12 @@
/* ---- 移动端 ---- */
@media (max-width: 640px) {
.gb-chapter-lead .vp-doc h2 {
font-size: 1.5rem;
}
.gb-chapter-lead .vp-doc h3[id^='step-'] {
font-size: 1.22rem;
}
.vp-doc h1 {
font-size: 1.5rem;
}