mirror of
https://github.com/luxfi/netrunner.git
synced 2026-10-30 15:24:46 +00:00
- Use luxfi/consensus/validators instead of node/consensus/validators - Use luxfi/ids instead of node/ids - Use luxfi/log instead of node/utils/logging - Use luxfi/utils/set instead of node/utils/set - Use luxfi/genesis instead of node/genesis - Use luxfi/evm/plugin/evm/client instead of geth/plugin/evm/client Removes dependency on non-existent node packages in v1.21+
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()
|