This commit is contained in:
@ -9,8 +9,8 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@docusaurus/core": "^3.1.1",
|
||||
"@docusaurus/plugin-content-docs": "^3.1.1",
|
||||
"@docusaurus/core": "^3.4.0",
|
||||
"@docusaurus/plugin-content-docs": "^3.4.0",
|
||||
"dayjs": "^1.11.10",
|
||||
"reading-time": "^1.5.0",
|
||||
"simple-git": "^3.22.0"
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user