docusaurus插件开发
Some checks failed
Release / deploy (push) Failing after 1m42s

This commit is contained in:
2024-03-24 18:34:18 +08:00
parent ac55a0c6a2
commit e9c32c4118
9 changed files with 340 additions and 47 deletions

View File

@ -36,11 +36,6 @@ export default async function pluginContentDocs(
)) as Plugin<LoadedContent>;
const isProd = process.env.NODE_ENV === "production";
const themePath = path.resolve(__dirname, "./theme");
ret.getThemePath = () => {
return themePath;
};
const warpLoadContent = ret.loadContent;
ret.loadContent = async () => {
const ret = await warpLoadContent();