mirror of
https://github.com/luxfi/math.git
synced 2026-07-27 03:38:49 +00:00
- Add clear method to Set type - Add documentation site structure - Update Go module version
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()
|