Skip to content

Commit 40078cb

Browse files
committed
add petstore_nested-demo
1 parent 61fb69f commit 40078cb

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

demo/docusaurus.config.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,20 @@ const config: Config = {
302302
hideSendButton: false,
303303
showSchemas: true,
304304
} satisfies OpenApiPlugin.Options,
305+
petstore_nested: {
306+
specPath: "examples/petstore.yaml",
307+
proxy: "https://cors.pan.dev",
308+
outputDir: "docs/petstore_nested",
309+
sidebarOptions: {
310+
groupPathsBy: "tag",
311+
categoryLinkSource: "tag",
312+
nested: true,
313+
},
314+
template: "api.mustache", // Customize API MDX with mustache template
315+
downloadUrl: "/petstore.yaml",
316+
hideSendButton: false,
317+
showSchemas: true,
318+
} satisfies OpenApiPlugin.Options,
305319
petstore31: {
306320
specPath: "examples/petstore-3.1.yaml",
307321
proxy: "https://cors.pan.dev",

demo/sidebars.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ const sidebars: SidebarsConfig = {
136136
items: require("./docs/restaurant/sidebar.js"),
137137
},
138138
],
139+
petstore_nested: [{ type: "autogenerated", dirName: "." }],
139140
"petstore-2.0.0": [
140141
{
141142
type: "html",

0 commit comments

Comments
 (0)