Skip to content

Commit

Permalink
compilation issue, since docusaurus upgraded in master branch (#2920)
Browse files Browse the repository at this point in the history
  • Loading branch information
nage1234 authored May 25, 2024
1 parent 23bfe3a commit e956853
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions plugins/packs-integrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,17 +224,21 @@ async function pluginPacksAndIntegrationsData(context, options) {
console.info("completed the fetch of all the pack details");
return { packsPaletteData: packMDMap, packsPaletteDetailsData: apiPacksData, packsDescription: packDescription, repositories: mappedRepos };
},
async contentLoaded({ allContent, content, actions }) {
async contentLoaded({ content, actions }) {
const { setGlobalData, addRoute } = actions;
const { packsPaletteData, packsPaletteDetailsData, packsDescription, repositories } = content;
const integrationsData = generateIntegrationData(allContent);
const customPacksData = generateCustomData(packsDescription);
const unionPackData = combineAPICustomPackData(packsPaletteData, packsPaletteDetailsData, customPacksData);
const routes = generateRoutes(packsPaletteData);
console.info("completed the generation of the routes");
routes.map(route => addRoute(route));
setGlobalData({ integrations: integrationsData, packs: unionPackData, repositories: repositories });
setGlobalData({ packs: unionPackData, repositories: repositories });
},
async allContentLoaded({ allContent, actions }) {
const { setGlobalData } = actions;
const integrationsData = generateIntegrationData(allContent);
setGlobalData({ integrations: integrationsData })
}
};
}

Expand Down

0 comments on commit e956853

Please sign in to comment.