diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 745750e6b7..729f7a976f 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -714,6 +714,7 @@ module.exports = { outDir: 'docs/generated', // the base directory to output to. documents: sdks.urls, // the file names to download modifyContent: sdks.modifyContent, + noRuntimeDownloads: true, }, ], [ @@ -725,6 +726,7 @@ module.exports = { outDir: 'docs/generated/', // the base directory to output to. documents: edgeAndProxy.urls, // the file names to download modifyContent: edgeAndProxy.modifyContent, + noRuntimeDownloads: true, }, ], ], diff --git a/website/package.json b/website/package.json index 65a1a1178e..c243490028 100644 --- a/website/package.json +++ b/website/package.json @@ -7,11 +7,12 @@ }, "scripts": { "docusaurus": "docusaurus", - "start": "docusaurus start", - "build": "yarn generate && docusaurus build", + "start": "yarn fetch-remote-content && docusaurus start", + "build": "yarn generate && yarn fetch-remote-content && docusaurus build", "swizzle": "docusaurus swizzle", + "fetch-remote-content": "docusaurus download-remote-content-external && docusaurus download-remote-content-sdks", "generate": "docusaurus gen-api-docs all && node clean-generated-docs.js", - "deploy": "yarn generate && docusaurus deploy", + "deploy": "yarn generate && yarn fetch-remote-content && docusaurus deploy", "clear": "docusaurus clear", "serve": "docusaurus serve", "write-translations": "docusaurus write-translations",