mirror of
https://github.com/luxfi/dex.git
synced 2026-09-24 00:26:31 +00:00
Use Hanzo's own documentation framework fork for better integration with existing @hanzo/ui components and consistent theming. - Replace fumadocs-core with @hanzo/docs-core - Replace fumadocs-ui with @hanzo/docs-ui - Replace fumadocs-mdx with @hanzo/docs-mdx
19 lines
449 B
TypeScript
19 lines
449 B
TypeScript
import { docs } from "@/.source"
|
|
import { loader } from "@hanzo/docs-core/source"
|
|
|
|
// Create a single source instance that is reused
|
|
// This prevents circular references and stack overflow issues
|
|
let _source: ReturnType<typeof loader> | null = null
|
|
|
|
export function getSource() {
|
|
if (!_source) {
|
|
_source = loader({
|
|
baseUrl: "/docs",
|
|
source: docs.toFumadocsSource(),
|
|
})
|
|
}
|
|
return _source
|
|
}
|
|
|
|
export const source = getSource()
|