upgrade docusaurus
Some checks failed
Release / deploy (push) Failing after 10s

This commit is contained in:
2024-06-04 10:31:37 +08:00
parent ccd91b7af4
commit ff6d07d414
7 changed files with 19 additions and 17 deletions

View File

@@ -98,16 +98,16 @@ export default async function pluginContentDocs(
return ret;
};
const warpContentLoaded = ret.contentLoaded;
ret.contentLoaded = async ({ content, actions, allContent }) => {
const ret = await warpContentLoaded({
content,
actions,
allContent,
});
return ret;
};
const warpAllContentLoaded = ret.allContentLoaded;
if (warpAllContentLoaded) {
ret.allContentLoaded = async ({ actions, allContent }) => {
const ret = await warpAllContentLoaded({
actions,
allContent,
});
return ret;
};
}
return ret;
}