Files
docs/examples/openapi/lib/source.ts
T
zooqueenandHanzo Dev e6732db13a refactor(api)!: rename toFumadocsSource() -> toDocsSource() (brand-neutral)
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]>
2026-06-17 22:12:29 -07:00

18 lines
431 B
TypeScript

import { loader, multiple } from '@hanzo/docs-core/source';
import { openapiPlugin, openapiSource } from '@hanzo/docs-openapi/server';
import { docs } from 'collections/server';
import { openapi } from './openapi';
export const source = loader(
{
docs: docs.toDocsSource(),
openapi: await openapi.staticSource({
groupBy: 'tag',
}),
},
{
baseUrl: '/docs',
plugins: [openapi.loaderPlugin()],
},
);