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