diff options
| author | 2026-01-21 20:27:47 +0800 | |
|---|---|---|
| committer | 2026-01-21 20:27:47 +0800 | |
| commit | 9ebcd9e9a441c7edcd9d9d55ef65af2799a30a7f (patch) | |
| tree | 3b7426aa13e66dc29de1a2e06583f5cea9f87596 /packages/docs/app/lib | |
| parent | 42b114140b9ddeb1060ac7e51311cc50f5641c2d (diff) | |
| parent | 85382b427244ebb13497124defacd63f39e2871b (diff) | |
| download | DropOut-9ebcd9e9a441c7edcd9d9d55ef65af2799a30a7f.tar.gz DropOut-9ebcd9e9a441c7edcd9d9d55ef65af2799a30a7f.zip | |
docs: add chinese readme and docs website (#76)
## Summary by Sourcery
Add a new documentation site package and a Chinese README to improve
project documentation and accessibility.
New Features:
- Introduce a dedicated @dropout/docs React Router application powered
by Fumadocs for hosting the project documentation.
Documentation:
- Add a Chinese README file providing an overview, installation, build
instructions, and contribution guidelines for Chinese-speaking users.
- Set up initial docs content, navigation, and metadata within the new
docs site, including example pages and search endpoint configuration.
Diffstat (limited to 'packages/docs/app/lib')
| -rw-r--r-- | packages/docs/app/lib/layout.shared.tsx | 9 | ||||
| -rw-r--r-- | packages/docs/app/lib/source.ts | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/packages/docs/app/lib/layout.shared.tsx b/packages/docs/app/lib/layout.shared.tsx new file mode 100644 index 0000000..af2b6f0 --- /dev/null +++ b/packages/docs/app/lib/layout.shared.tsx @@ -0,0 +1,9 @@ +import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared'; + +export function baseOptions(): BaseLayoutProps { + return { + nav: { + title: 'React Router', + }, + }; +} diff --git a/packages/docs/app/lib/source.ts b/packages/docs/app/lib/source.ts new file mode 100644 index 0000000..97cf767 --- /dev/null +++ b/packages/docs/app/lib/source.ts @@ -0,0 +1,7 @@ +import { loader } from 'fumadocs-core/source'; +import { docs } from 'fumadocs-mdx:collections/server'; + +export const source = loader({ + source: docs.toFumadocsSource(), + baseUrl: '/docs', +}); |