mirror of
https://github.com/luxfi/go-bip32.git
synced 2026-07-27 01:14:41 +00:00
19 lines
446 B
TypeScript
19 lines
446 B
TypeScript
import { docs } from "@/.source"
|
|
import { loader } from "fumadocs-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()
|