mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-24 15:10:48 +08:00
docs: 引入 Fumadocs
ci: set up github actions
This commit is contained in:
10
docs/scripts/generate-docs.ts
Normal file
10
docs/scripts/generate-docs.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { generateFiles } from 'fumadocs-openapi';
|
||||
import { openapi } from '@/lib/openapi';
|
||||
|
||||
void generateFiles({
|
||||
input: openapi,
|
||||
output: './content/docs/openapi/(generated)',
|
||||
// we recommend to enable it
|
||||
// make sure your endpoint description doesn't break MDX syntax.
|
||||
includeDescription: true,
|
||||
});
|
||||
Reference in New Issue
Block a user