mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
Migrated 93 MDX pages from old Tamagui-based site to @hanzo/docs system: - 13 intro pages (installation, props, styles, themes, etc.) - 22 core pages (configuration, styled, variants, animations, etc.) - 48 component pages (button, dialog, select, toast, etc.) - 14 guide pages (next-js, expo, vite, webpack, metro, etc.) Zero tamagui references. Uses @hanzo/docs-base-ui + @hanzo/docs-mdx.
17 lines
441 B
TypeScript
17 lines
441 B
TypeScript
import {
|
|
type InferMetaType,
|
|
type InferPageType,
|
|
loader,
|
|
} from '@hanzo/docs/core/source';
|
|
import { docs } from '@hanzo/mdx:collections/server';
|
|
import { lucideIconsPlugin } from '@hanzo/docs/core/source/lucide-icons';
|
|
|
|
export const source = loader({
|
|
source: docs.toSource(),
|
|
baseUrl: '/docs',
|
|
plugins: [lucideIconsPlugin()],
|
|
});
|
|
|
|
export type Page = InferPageType<typeof source>;
|
|
export type Meta = InferMetaType<typeof source>;
|