- 在 layout: home 的 home-hero-before 注入 YuxiHome 组件,保留 VitePress 导航/搜索/页脚 - Hero 第一屏氛围背景(光球 + 网格 mesh)与产品截图 - 知识引擎改为可切换 tab:解析 / Agentic RAG / 知识图谱 / 检索评估 / 多知识源接入 - 模型供应商墙改为两行错位跑马灯并使用真实图标 - 精简 index.md,首页内容迁移至组件
16 lines
457 B
TypeScript
16 lines
457 B
TypeScript
import { h } from 'vue'
|
||
import DefaultTheme from 'vitepress/theme'
|
||
import YuxiHome from './components/YuxiHome.vue'
|
||
import './custom.css'
|
||
|
||
export default {
|
||
extends: DefaultTheme,
|
||
// 在首页(layout: home)的最顶部注入完全自定义的官网首页,
|
||
// 同时保留 VitePress 的顶部导航、搜索、暗黑切换与页脚。
|
||
Layout() {
|
||
return h(DefaultTheme.Layout, null, {
|
||
'home-hero-before': () => h(YuxiHome)
|
||
})
|
||
}
|
||
}
|