diff options
| author | 2026-03-26 08:50:26 +0800 | |
|---|---|---|
| committer | 2026-03-26 08:50:26 +0800 | |
| commit | 7d0e92e6d3b172adfe552ffae9b97f8dad6f63ae (patch) | |
| tree | f54ab2bf4867eb69a6e7db890c882f9ea080a324 /packages/docs/app/lib/layout.shared.tsx | |
| parent | e356ab996ad3ef4ad5fb9c90d4a4b4e61ff3342d (diff) | |
| parent | 41589eac819da64e832539df3e1c7117a6393ad0 (diff) | |
| download | DropOut-7d0e92e6d3b172adfe552ffae9b97f8dad6f63ae.tar.gz DropOut-7d0e92e6d3b172adfe552ffae9b97f8dad6f63ae.zip | |
chore(lint): partial apply docs code lints (#123)
cc @NtskwK ptal, and, some codes cannot pass the code lint, check plz.
## Summary by Sourcery
Apply linting and formatting updates across the docs app, and align
tooling and release config for the @dropout/docs package.
Enhancements:
- Normalize imports, string literals, and JSX formatting across the docs
app for consistent style and lint compliance.
- Tidy i18n, routing, and docs loader code without changing behavior,
improving readability and maintainability.
Build:
- Register the @dropout/docs package in the release/config system with
nodejs resolver and alpha pre-release tagging.
- Update docs-related Vite and TypeScript config files to match the new
linting and path conventions.
- Remove the nodejs publish command block from the shared changes config
to simplify release behavior.
Chores:
- Bump @biomejs/biome to the latest version and add core-js to
onlyBuiltDependencies for tooling compatibility.
- Add a changeset for @dropout/docs describing the docs linting patch
release.
- Introduce or update Biome and docs content metadata config files to
support the new linting setup.
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`, }, ], |