mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-14 15:11:13 +00:00
4.11.2 dev (#5368)
* 4.11.2 dev (#103) * update document * update doc * update doc * doc img * action * fix action * fix: action * fix: action * perf: action * doc * perf: action
This commit is contained in:
@@ -9,12 +9,14 @@ const exactMap: Record<string, string> = {
|
||||
'/docs/guide/admin/sso_dingtalk':
|
||||
'/docs/introduction/guide/admin/sso#/docs/introduction/guide/admin/sso#钉钉',
|
||||
'/docs/guide/knowledge_base/rag': '/docs/introduction/guide/knowledge_base/RAG',
|
||||
'/docs/commercial/intro/': '/docs/introduction'
|
||||
'/docs/commercial/intro/': '/docs/introduction',
|
||||
'/docs/upgrading/intro/': '/docs/upgrading',
|
||||
'/docs/introduction/shopping_cart/intro/': '/docs/introduction/commercial'
|
||||
};
|
||||
|
||||
const prefixMap: Record<string, string> = {
|
||||
'/docs/development': '/docs/introduction/development',
|
||||
'/docs/FAQ': '/docs/introduction/FAQ',
|
||||
'/docs/FAQ': '/docs/faq',
|
||||
'/docs/guide': '/docs/introduction/guide',
|
||||
'/docs/shopping_cart': '/docs/introduction/shopping_cart',
|
||||
'/docs/agreement': '/docs/protocol'
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
import { type HTMLAttributes } from 'react';
|
||||
import { HomeLayout, type HomeLayoutProps } from 'fumadocs-ui/layouts/home';
|
||||
import Link from 'next/link';
|
||||
|
||||
interface CustomHomeLayoutProps extends HomeLayoutProps {
|
||||
// 可以在这里添加自定义的属性
|
||||
}
|
||||
|
||||
export function CustomHomeLayout({
|
||||
children,
|
||||
nav,
|
||||
...props
|
||||
}: CustomHomeLayoutProps & HTMLAttributes<HTMLElement>) {
|
||||
return (
|
||||
<HomeLayout
|
||||
{...props}
|
||||
nav={{
|
||||
...nav,
|
||||
title: (
|
||||
<div className="flex flex-col items-center gap-2">
|
||||
<div className="flex flex-row items-center gap-2">
|
||||
<img src="/logo.svg" alt="FastGPT" width={49} height={48} />
|
||||
FastGPT
|
||||
</div>
|
||||
<div className="flex flex-row items-center gap-4 text-sm">
|
||||
<Link href="/docs/introduction" className="hover:text-blue-500">
|
||||
使用说明
|
||||
</Link>
|
||||
<Link href="/docs/use-cases" className="hover:text-blue-500">
|
||||
使用案例
|
||||
</Link>
|
||||
<Link href="/docs/agreement" className="hover:text-blue-500">
|
||||
协议
|
||||
</Link>
|
||||
<Link href="/docs/api" className="hover:text-blue-500">
|
||||
API手册
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
),
|
||||
transparentMode: 'none'
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</HomeLayout>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user