Skip to content

Commit 2500d35

Browse files
downloadUrl option is now available to all API entities, previously only "info" pages (#1094)
1 parent 6b5c104 commit 2500d35

File tree

1 file changed

+2
-4
lines changed
  • packages/docusaurus-plugin-openapi-docs/src

1 file changed

+2
-4
lines changed

packages/docusaurus-plugin-openapi-docs/src/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,8 @@ custom_edit_url: null
315315
};
316316

317317
loadedApi.map(async (item) => {
318-
if (item.type === "info") {
319-
if (downloadUrl) {
320-
item.downloadUrl = downloadUrl;
321-
}
318+
if (downloadUrl) {
319+
item.downloadUrl = downloadUrl;
322320
}
323321
const markdown = pageGeneratorByType[item.type](item as any);
324322
item.markdown = markdown;

0 commit comments

Comments
 (0)