Skip to content

Commit 3675c4e

Browse files
authored
Support absolute or relative downloadUrl (#865)
* use abs url path for petstore download url * update isURL function to support abs path * formatting * revert isURL and support relative or abs downloadUrl path
1 parent c618b4c commit 3675c4e

File tree

3 files changed

+1273
-3
lines changed

3 files changed

+1273
-3
lines changed

demo/docusaurus.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,7 @@ const config: Config = {
241241
categoryLinkSource: "tag",
242242
},
243243
template: "api.mustache", // Customize API MDX with mustache template
244-
downloadUrl:
245-
"https://raw.githubusercontent.com/PaloAltoNetworks/docusaurus-openapi-docs/main/demo/examples/petstore.yaml",
244+
downloadUrl: "/petstore.yaml",
246245
hideSendButton: false,
247246
showSchemas: true,
248247
} satisfies OpenApiPlugin.Options,

0 commit comments

Comments
 (0)