Skip to content

Commit

Permalink
Support absolute or relative downloadUrl (#865)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sserrata authored Jul 3, 2024
1 parent c618b4c commit 3675c4e
Show file tree
Hide file tree
Showing 3 changed files with 1,273 additions and 3 deletions.
3 changes: 1 addition & 2 deletions demo/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ const config: Config = {
categoryLinkSource: "tag",
},
template: "api.mustache", // Customize API MDX with mustache template
downloadUrl:
"https://raw.githubusercontent.com/PaloAltoNetworks/docusaurus-openapi-docs/main/demo/examples/petstore.yaml",
downloadUrl: "/petstore.yaml",
hideSendButton: false,
showSchemas: true,
} satisfies OpenApiPlugin.Options,
Expand Down
Loading

0 comments on commit 3675c4e

Please sign in to comment.