mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
22 lines
506 B
TypeScript
22 lines
506 B
TypeScript
import { docs } from "@/.source/server"
|
|
import { loader } from "@hanzo/docs-core/source"
|
|
import type { InferPageType } from "@hanzo/docs-core/source"
|
|
|
|
export const source = loader({
|
|
baseUrl: "/docs",
|
|
source: docs.toSource(),
|
|
})
|
|
|
|
// Extend PageData with custom frontmatter fields
|
|
export type Page = InferPageType<typeof source>
|
|
|
|
// Type augmentation for custom frontmatter
|
|
declare module "@hanzo/docs-core/source" {
|
|
interface PageData {
|
|
links?: {
|
|
doc?: string
|
|
api?: string
|
|
}
|
|
}
|
|
}
|