Files
hapi/docs/.vitepress/config.ts
T
weishu b7503d9309 docs: restructure docs site and fix drift against code
- split installation.md into installation/deployment/notifications
- merge cursor/grok guides into new agents.md with full support matrix
- sidebar: grouped sections; add namespace, deployment, notifications,
  native companion contract
- fix license footer (AGPL-3.0), settings schema fields and $id
- fix drift in pwa, faq, namespace, how-it-works, voice-assistant,
  quick-start, native-companion-contract
- move mermaid lightbox dogfood doc to localdocs (untracked)
- README: complete agent list, replace dead cursor/grok links
2026-08-05 07:51:16 +08:00

80 lines
1.8 KiB
TypeScript

import { defineConfig } from 'vitepress'
export default defineConfig({
title: 'HAPI',
description: 'Control your AI agents from anywhere',
base: '/docs/',
head: [
['link', { rel: 'icon', href: '/docs/favicon.ico' }],
],
themeConfig: {
logo: '/logo.svg',
nav: [
{ text: 'Quick Start', link: '/guide/quick-start' },
{ text: 'App', link: 'https://app.hapi.run', target: '_blank' }
],
sidebar: [
{
text: 'Get Started',
items: [
{ text: 'Quick Start', link: '/guide/quick-start' },
{ text: 'Installation', link: '/guide/installation' },
{ text: 'PWA', link: '/guide/pwa' }
]
},
{
text: 'Guide',
items: [
{ text: 'How it Works', link: '/guide/how-it-works' },
{ text: 'Voice Assistant', link: '/guide/voice-assistant' },
{ text: 'Why HAPI', link: '/guide/why-hapi' },
{ text: 'FAQ', link: '/guide/faq' }
]
},
{
text: 'Agents',
items: [
{ text: 'Agents', link: '/guide/agents' }
]
},
{
text: 'Advanced',
items: [
{ text: 'Namespace', link: '/guide/namespace' },
{ text: 'Deployment', link: '/guide/deployment' },
{ text: 'Notifications', link: '/guide/notifications' }
]
},
{
text: 'API',
items: [
{ text: 'Native Companion Contract', link: '/api/native-companion-contract' }
]
}
],
socialLinks: [
{ icon: 'github', link: 'https://github.com/tiann/hapi' }
],
footer: {
message: 'Released under the AGPL-3.0 License.',
copyright: 'Copyright © 2025-present'
},
search: {
provider: 'local'
}
},
vite: {
server: {
allowedHosts: true
}
}
})