Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation issue, since docusaurus upgraded in master branch #2920

Merged
merged 1 commit into from
May 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading