Files
zeekay 95bf6a6295 Update Zen Guard with proper branding and structure
- Zen AI branded README with proper documentation
- GitHub Actions workflow for testing
- Complete docs structure with paper
- Training scripts and examples
- Makefile for build automation
2025-12-21 12:43:52 -08:00

16 lines
410 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
}