mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
18 lines
434 B
TypeScript
18 lines
434 B
TypeScript
import { loader, multiple } from 'fumadocs-core/source';
|
|
import { openapiPlugin, openapiSource } from 'fumadocs-openapi/server';
|
|
import { docs } from 'collections/server';
|
|
import { openapi } from './openapi';
|
|
|
|
export const source = loader(
|
|
multiple({
|
|
docs: docs.toFumadocsSource(),
|
|
openapi: await openapiSource(openapi, {
|
|
groupBy: 'tag',
|
|
}),
|
|
}),
|
|
{
|
|
baseUrl: '/docs',
|
|
plugins: [openapiPlugin()],
|
|
},
|
|
);
|