diff options
| author | 2026-03-26 09:01:31 +0800 | |
|---|---|---|
| committer | 2026-03-26 09:01:31 +0800 | |
| commit | 3a31d3004b2814cd8a26d49a0f8a96636411dcd2 (patch) | |
| tree | e86c8d46e73262c67c1755aaf4202cbcd1f8f844 /packages/docs/app/lib/layout.shared.tsx | |
| parent | 1aeb0d1f5cf6c5c2492e749e3c25c3649b591c59 (diff) | |
| parent | 7d0e92e6d3b172adfe552ffae9b97f8dad6f63ae (diff) | |
| download | DropOut-3a31d3004b2814cd8a26d49a0f8a96636411dcd2.tar.gz DropOut-3a31d3004b2814cd8a26d49a0f8a96636411dcd2.zip | |
Merge branch 'main' into feature/multi-instances
Diffstat (limited to 'packages/docs/app/lib/layout.shared.tsx')
| -rw-r--r-- | packages/docs/app/lib/layout.shared.tsx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/packages/docs/app/lib/layout.shared.tsx b/packages/docs/app/lib/layout.shared.tsx index b3595eb..805d929 100644 --- a/packages/docs/app/lib/layout.shared.tsx +++ b/packages/docs/app/lib/layout.shared.tsx @@ -1,27 +1,27 @@ -import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared'; -import { i18n } from './i18n'; +import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared"; +import { i18n } from "./i18n"; export function baseOptions(locale: string): BaseLayoutProps { // 默认语言(zh)不显示前缀,其他语言显示前缀 const isDefaultLocale = locale === i18n.defaultLanguage; - const localePrefix = isDefaultLocale ? '' : `/${locale}`; - + const localePrefix = isDefaultLocale ? "" : `/${locale}`; + return { i18n, nav: { - title: 'DropOut', - url: localePrefix || '/', + title: "DropOut", + url: localePrefix || "/", }, - githubUrl: 'https://github.com/HydroRoll-Team/DropOut', + githubUrl: "https://github.com/HydroRoll-Team/DropOut", links: [ { - type: 'main', - text: locale === 'zh' ? '使用文档' : 'Manual', + type: "main", + text: locale === "zh" ? "使用文档" : "Manual", url: `${localePrefix}/docs/manual`, }, { - type: 'main', - text: locale === 'zh' ? '开发文档' : 'Development', + type: "main", + text: locale === "zh" ? "开发文档" : "Development", url: `${localePrefix}/docs/development`, }, ], |