mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-28 07:09:50 +00:00
- Renamed fumaMatter → parseFrontmatter - Renamed fuma-matter.ts → frontmatter.ts - Removed deprecated toFumadocsSource() method, keeping only toSource() - Updated all type names: FumadocsDataMap → DocsDataMap, etc. - Updated FumapressConfig → PressConfig, fumapress → hanzoPress - Updated useFumadocsLoader → useDocsLoader - Updated writeFumadocsRegistry → writeDocsRegistry - Updated all README files with Hanzo Docs branding - Updated create-app templates to use hanzoai/docs GitHub repo - Updated all example files and documentation content - Updated robots.txt, GitHub workflows, and issue templates - Updated test fixtures with hanzo-docs.dev URLs - Published updated packages to npm BREAKING CHANGE: All fumadocs imports must be updated to use new names: - fumaMatter → parseFrontmatter - toFumadocsSource → toSource - useFumadocsLoader → useDocsLoader
31 lines
958 B
TypeScript
31 lines
958 B
TypeScript
import type { Route } from './+types/home';
|
|
import { HomeLayout } from '@hanzo/docs/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">Hanzo Docs 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>
|
|
);
|
|
}
|