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/routes/home.tsx | |
| 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/routes/home.tsx')
| -rw-r--r-- | packages/docs/app/routes/home.tsx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/docs/app/routes/home.tsx b/packages/docs/app/routes/home.tsx new file mode 100644 index 0000000..7f03ba9 --- /dev/null +++ b/packages/docs/app/routes/home.tsx @@ -0,0 +1,30 @@ +import type { Route } from './+types/home'; +import { HomeLayout } from 'fumadocs-ui/layouts/home'; +import { Link } from 'react-router'; +import { baseOptions } from '@/lib/layout.shared'; + +export function meta({}: Route.MetaArgs) { + return [ + { title: 'New React Router App' }, + { name: 'description', content: 'Welcome to React Router!' }, + ]; +} + +export default function Home() { + return ( + <HomeLayout {...baseOptions()}> + <div className="p-4 flex flex-col items-center justify-center text-center flex-1"> + <h1 className="text-xl font-bold mb-2">Fumadocs on React Router.</h1> + <p className="text-fd-muted-foreground mb-4"> + The truly flexible docs framework on React.js. + </p> + <Link + className="text-sm bg-fd-primary text-fd-primary-foreground rounded-full font-medium px-4 py-2.5" + to="/docs" + > + Open Docs + </Link> + </div> + </HomeLayout> + ); +} |