mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-18 02:06:33 +08:00
* feat: add Gemini 3.1 models - Add gemini-3.1-pro-preview (released February 19, 2026) - Add gemini-3.1-flash-lite-preview (released March 3, 2026) Both models support: - 1M context window - 64k max response - Vision - Tool choice * docs: switch to docs layout and apply black theme - Change layout from notebook to docs - Update logo to icon + text format - Apply fumadocs black theme - Simplify global.css (keep only navbar and TOC styles) - Fix icon components to properly accept className props - Add mobile text overflow handling - Update Node engine requirement to >=20.x * doc * doc * lock * fix: ts * doc * doc --------- Co-authored-by: archer <archer@archerdeMac-mini.local> Co-authored-by: archer <545436317@qq.com>
32 lines
772 B
TypeScript
32 lines
772 B
TypeScript
import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';
|
|
import { i18n } from '@/lib/i18n';
|
|
import Image from 'next/image';
|
|
|
|
/**
|
|
* Shared layout configurations
|
|
*
|
|
* you can customise layouts individually from:
|
|
* Home Layout: app/(home)/layout.tsx
|
|
* Docs Layout: app/docs/layout.tsx
|
|
*/
|
|
export const baseOptions = (locale: string): BaseLayoutProps => {
|
|
return {
|
|
themeSwitch: {
|
|
enabled: true,
|
|
mode: 'light-dark'
|
|
},
|
|
nav: {
|
|
title: (
|
|
<div className="flex flex-row items-center gap-2">
|
|
<Image src="/logo.svg" alt="FastGPT" width={30} height={30} />
|
|
<span className="font-semibold text-lg">FastGPT</span>
|
|
</div>
|
|
)
|
|
},
|
|
i18n: true,
|
|
searchToggle: {
|
|
enabled: true
|
|
}
|
|
};
|
|
};
|