mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
Renames the public doc-collection method across runtime, types, examples and create-app templates so the API carries no upstream brand. The internal helper and all call sites move together; fumadocs-core package imports are untouched. Pairs with the .docs default outDir change. BREAKING CHANGE: docs.toFumadocsSource() is now docs.toDocsSource(). Co-authored-by: Hanzo Dev <[email protected]>
10 lines
283 B
TypeScript
10 lines
283 B
TypeScript
import { docs } from 'collections/server';
|
|
import { loader } from '@hanzo/docs-core/source';
|
|
|
|
// See https://fumadocs.dev/docs/headless/source-api for more info
|
|
export const source = loader({
|
|
// it assigns a URL to your pages
|
|
baseUrl: '/docs',
|
|
source: docs.toDocsSource(),
|
|
});
|