diff --git a/docusaurus.config.js b/docusaurus.config.js index 17f011c059..6b93e826df 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -208,7 +208,7 @@ const config = { ], [ pluginPacksAndIntegrationsData, - { repositories: ["Palette Registry", "Spectro Addon Repo", "Palette Community Registry"] }, + { repositories: ["Palette Registry", "Public Repo", "Spectro Addon Repo", "Palette Community Registry"] }, ], pluginImportFontAwesomeIcons, function () { diff --git a/plugins/packs-integrations.js b/plugins/packs-integrations.js index 8e1847fa24..63a4ab6f5b 100644 --- a/plugins/packs-integrations.js +++ b/plugins/packs-integrations.js @@ -7,6 +7,7 @@ const mime = require("mime-types"); const { setTimeout } = require("timers/promises"); const BASE_URL = require("../static/scripts/constants.js").BASE_URL; const fetch = require("node-fetch"); +const excludeList = require("../static/packs-data/exclude_packs.json"); const { existsSync, promises, open, mkdirSync, writeFile, close, createWriteStream } = require("node:fs"); import logger from "@docusaurus/logger"; @@ -386,6 +387,16 @@ async function pluginPacksAndIntegrationsData(context, options) { mkdirSync(dirname, { recursive: true }); } let packDataArr = await fetchPackListItems("?limit=50", [], 0); + + // Filter out the packs from the exclude list. + packDataArr = packDataArr.filter((pack) => { + if (excludeList.includes(pack.spec.name)) { + // Only uncomment if debugging is required + // logger.warn(`Pack ${pack.spec.name} is excluded from the list`); + return false; + } + return true; + }); logger.info("All production packs are identified and a list of packs to be fetched is prepared"); packDataArr = packDataArr.filter((pack) => { return ( diff --git a/static/packs-data/exclude_packs.json b/static/packs-data/exclude_packs.json new file mode 100644 index 0000000000..86b9b55ba7 --- /dev/null +++ b/static/packs-data/exclude_packs.json @@ -0,0 +1 @@ +["palette-upgrader"]