Skip to content

Commit f6b5f67

Browse files
committed
add example OpenAPI 3.1 petstore
1 parent af064f4 commit f6b5f67

File tree

3 files changed

+1316
-0
lines changed

3 files changed

+1316
-0
lines changed

demo/docusaurus.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,19 @@ const config: Config = {
297297
hideSendButton: false,
298298
showSchemas: true,
299299
} satisfies OpenApiPlugin.Options,
300+
petstore31: {
301+
specPath: "examples/petstore-3.1.yaml",
302+
proxy: "https://cors.pan.dev",
303+
outputDir: "docs/petstore31",
304+
sidebarOptions: {
305+
groupPathsBy: "tag",
306+
categoryLinkSource: "tag",
307+
},
308+
template: "api.mustache", // Customize API MDX with mustache template
309+
downloadUrl: "/petstore-3.1.yaml",
310+
hideSendButton: false,
311+
showSchemas: true,
312+
} satisfies OpenApiPlugin.Options,
300313
cos: {
301314
specPath: "examples/openapi-cos.json",
302315
outputDir: "docs/cos",

0 commit comments

Comments
 (0)