mirror of
https://github.com/dathere/ckanaction.git
synced 2025-11-09 14:19:49 +00:00
feat(docs): initial interactive ckanaction docs web app
This commit is contained in:
parent
945fc6dca1
commit
39c573a5a4
27 changed files with 1507 additions and 0 deletions
39
docs/lib/openapi.ts
Normal file
39
docs/lib/openapi.ts
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
import { createOpenAPI } from 'fumadocs-openapi/server';
|
||||
|
||||
export const openapi = createOpenAPI({
|
||||
input: ["./lib/openapi.yml"],
|
||||
generateCodeSamples(endpoint) {
|
||||
return [
|
||||
{
|
||||
lang: 'curl',
|
||||
label: 'cURL',
|
||||
source: false,
|
||||
},
|
||||
{
|
||||
lang: 'javascript',
|
||||
label: 'JavaScript',
|
||||
source: false,
|
||||
},
|
||||
{
|
||||
lang: 'go',
|
||||
label: 'Go',
|
||||
source: false,
|
||||
},
|
||||
{
|
||||
lang: 'python',
|
||||
label: 'Python',
|
||||
source: false,
|
||||
},
|
||||
{
|
||||
lang: 'java',
|
||||
label: 'Java',
|
||||
source: false,
|
||||
},
|
||||
{
|
||||
lang: 'c#',
|
||||
label: 'C#',
|
||||
source: false,
|
||||
},
|
||||
];
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue