Splite docs to developer and user and bring profile link back
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://mintlify.com/docs.json",
|
"$schema": "https://mintlify.com/docs.json",
|
||||||
"name": "AI 视频助手",
|
"name": "AI 视频助手 · 开发者文档",
|
||||||
"theme": "mint",
|
"theme": "mint",
|
||||||
"colors": {
|
"colors": {
|
||||||
"primary": "#1b2741",
|
"primary": "#1b2741",
|
||||||
@@ -43,28 +43,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"navigation": {
|
"navigation": {
|
||||||
"tabs": [
|
|
||||||
{
|
|
||||||
"tab": "首页",
|
|
||||||
"pages": ["index"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tab": "用户文档",
|
|
||||||
"groups": [
|
|
||||||
{
|
|
||||||
"group": "产品",
|
|
||||||
"pages": ["user/overview", "user/features"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tab": "开发者文档",
|
|
||||||
"groups": [
|
"groups": [
|
||||||
{
|
{
|
||||||
"group": "开始与对接",
|
"group": "开始与对接",
|
||||||
"pages": ["developer/quickstart", "developer/integrations"]
|
"pages": ["index", "integrations"]
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
53
docs-user/docs.json
Normal file
53
docs-user/docs.json
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://mintlify.com/docs.json",
|
||||||
|
"name": "AI 视频助手 · 用户文档",
|
||||||
|
"theme": "mint",
|
||||||
|
"colors": {
|
||||||
|
"primary": "#1b2741",
|
||||||
|
"light": "#3a4a6b",
|
||||||
|
"dark": "#0c1426"
|
||||||
|
},
|
||||||
|
"logo": {
|
||||||
|
"light": "/logo-light.svg",
|
||||||
|
"dark": "/logo-dark.svg",
|
||||||
|
"href": "/"
|
||||||
|
},
|
||||||
|
"appearance": {
|
||||||
|
"default": "dark"
|
||||||
|
},
|
||||||
|
"fonts": {
|
||||||
|
"family": "Inter",
|
||||||
|
"weight": 400,
|
||||||
|
"heading": {
|
||||||
|
"family": "Cormorant Garamond",
|
||||||
|
"weight": 300
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"icons": {
|
||||||
|
"library": "lucide"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"decoration": "gradient",
|
||||||
|
"color": {
|
||||||
|
"light": "#f3f5fb",
|
||||||
|
"dark": "#070b16"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"styling": {
|
||||||
|
"eyebrows": "breadcrumbs",
|
||||||
|
"codeblocks": {
|
||||||
|
"theme": {
|
||||||
|
"light": "github-light",
|
||||||
|
"dark": "github-dark"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"navigation": {
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"group": "产品",
|
||||||
|
"pages": ["index", "features"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -18,5 +18,5 @@ icon: video
|
|||||||
|
|
||||||
## 下一步
|
## 下一步
|
||||||
|
|
||||||
- [核心功能](/user/features):了解助手类型、模型、知识库与工具。
|
- [核心功能](/features):了解助手类型、模型、知识库与工具。
|
||||||
- 本地启动与对接细节见 [开发者文档](/developer/quickstart)。
|
- 本地启动与对接见仓库中的 `docs-developer/`(独立开发者文档站点)。
|
||||||
18
docs-user/logo-dark.svg
Normal file
18
docs-user/logo-dark.svg
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 196 48" fill="none">
|
||||||
|
<defs>
|
||||||
|
<radialGradient id="sky" cx="0" cy="0" r="1" gradientTransform="matrix(31 0 0 31 14 10)" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#5F86B8" stop-opacity=".75"/>
|
||||||
|
<stop offset="1" stop-color="#5F86B8" stop-opacity="0"/>
|
||||||
|
</radialGradient>
|
||||||
|
<radialGradient id="lavender" cx="0" cy="0" r="1" gradientTransform="matrix(28 0 0 28 38 39)" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#8A78AD" stop-opacity=".68"/>
|
||||||
|
<stop offset="1" stop-color="#8A78AD" stop-opacity="0"/>
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
<circle cx="24" cy="24" r="24" fill="#E8EDF9"/>
|
||||||
|
<circle cx="24" cy="24" r="24" fill="url(#sky)"/>
|
||||||
|
<circle cx="24" cy="24" r="24" fill="url(#lavender)"/>
|
||||||
|
<rect x="14" y="17.5" width="14" height="13" rx="2.25" stroke="#0C1426" stroke-width="2.5"/>
|
||||||
|
<path d="m28 21.25 7-4v13.5l-7-4z" stroke="#0C1426" stroke-width="2.5" stroke-linejoin="round"/>
|
||||||
|
<text x="61" y="31" fill="#E8EDF9" font-family="Cormorant Garamond, serif" font-size="24" font-weight="400">AI视频助手</text>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.1 KiB |
18
docs-user/logo-light.svg
Normal file
18
docs-user/logo-light.svg
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 196 48" fill="none">
|
||||||
|
<defs>
|
||||||
|
<radialGradient id="sky" cx="0" cy="0" r="1" gradientTransform="matrix(31 0 0 31 14 10)" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#A8C8E8" stop-opacity=".8"/>
|
||||||
|
<stop offset="1" stop-color="#A8C8E8" stop-opacity="0"/>
|
||||||
|
</radialGradient>
|
||||||
|
<radialGradient id="lavender" cx="0" cy="0" r="1" gradientTransform="matrix(28 0 0 28 38 39)" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#C8B8E0" stop-opacity=".72"/>
|
||||||
|
<stop offset="1" stop-color="#C8B8E0" stop-opacity="0"/>
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
<circle cx="24" cy="24" r="24" fill="#E8EDF9"/>
|
||||||
|
<circle cx="24" cy="24" r="24" fill="url(#sky)"/>
|
||||||
|
<circle cx="24" cy="24" r="24" fill="url(#lavender)"/>
|
||||||
|
<rect x="14" y="17.5" width="14" height="13" rx="2.25" stroke="#0C1426" stroke-width="2.5"/>
|
||||||
|
<path d="m28 21.25 7-4v13.5l-7-4z" stroke="#0C1426" stroke-width="2.5" stroke-linejoin="round"/>
|
||||||
|
<text x="61" y="31" fill="#0F1B33" font-family="Cormorant Garamond, serif" font-size="24" font-weight="400">AI视频助手</text>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -1,18 +0,0 @@
|
|||||||
---
|
|
||||||
title: 文档首页
|
|
||||||
description: 按读者区分的用户文档与开发者文档入口。
|
|
||||||
icon: book-open
|
|
||||||
---
|
|
||||||
|
|
||||||
# 文档首页
|
|
||||||
|
|
||||||
本站点按读者分成两套文档:
|
|
||||||
|
|
||||||
<CardGroup cols={2}>
|
|
||||||
<Card title="用户文档" icon="users" color="#3a4a6b" href="/user/overview">
|
|
||||||
产品能力与配置关系,适合运营与配置人员。
|
|
||||||
</Card>
|
|
||||||
<Card title="开发者文档" icon="code" color="#3a4a6b" href="/developer/quickstart">
|
|
||||||
本地启动、模型对接与语音通道,适合开发与集成。
|
|
||||||
</Card>
|
|
||||||
</CardGroup>
|
|
||||||
@@ -16,6 +16,7 @@ import {
|
|||||||
Home,
|
Home,
|
||||||
LogOut,
|
LogOut,
|
||||||
PlayCircle,
|
PlayCircle,
|
||||||
|
User,
|
||||||
Video,
|
Video,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import { useAuth } from "@/components/auth/AuthProvider";
|
import { useAuth } from "@/components/auth/AuthProvider";
|
||||||
@@ -279,6 +280,13 @@ export function Sidebar({ collapsed, onToggle }: SidebarProps) {
|
|||||||
<Bell size={16} />
|
<Bell size={16} />
|
||||||
消息提示
|
消息提示
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem
|
||||||
|
className="h-10 rounded-xl px-3 font-normal"
|
||||||
|
onSelect={() => router.push("/profile")}
|
||||||
|
>
|
||||||
|
<User size={16} />
|
||||||
|
个人中心
|
||||||
|
</DropdownMenuItem>
|
||||||
<DropdownMenuSeparator />
|
<DropdownMenuSeparator />
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
variant="destructive"
|
variant="destructive"
|
||||||
|
|||||||
Reference in New Issue
Block a user