Skip to content

Commit c20077b

Browse files
committed
demonstrate version downloadUrl
1 parent 298159e commit c20077b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

demo/docusaurus.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,16 @@ const config = {
218218
version: "2.0.0", // Current version
219219
label: "v2.0.0", // Current version label
220220
baseUrl: "/petstore_versioned/swagger-petstore-yaml", // Leading slash is important
221+
downloadUrl:
222+
"https://raw.githubusercontent.com/PaloAltoNetworks/docusaurus-openapi-docs/main/demo/examples/petstore.yaml",
221223
versions: {
222224
"1.0.0": {
223225
specPath: "examples/petstore-1.0.0.yaml",
224226
outputDir: "docs/petstore_versioned/1.0.0", // No trailing slash
225227
label: "v1.0.0",
226228
baseUrl: "/petstore_versioned/1.0.0/swagger-petstore-yaml", // Leading slash is important
229+
downloadUrl:
230+
"https://redocly.com/_spec/docs/openapi/petstore.json",
227231
},
228232
},
229233
},

0 commit comments

Comments
 (0)