From 6d0b20ecd2164d7f2b46d929161b28b418d68781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=91=E8=8B=8D=E7=8B=97?= Date: Fri, 27 Sep 2024 23:34:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=84=20refactor:=20=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vitepress-theme-async/config/index.ts | 2 +- packages/vitepress-theme-async/{plugin => config}/rss.ts | 0 packages/vitepress-theme-async/package.json | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) rename packages/vitepress-theme-async/{plugin => config}/rss.ts (100%) diff --git a/packages/vitepress-theme-async/config/index.ts b/packages/vitepress-theme-async/config/index.ts index 661068f..b6b9168 100644 --- a/packages/vitepress-theme-async/config/index.ts +++ b/packages/vitepress-theme-async/config/index.ts @@ -220,7 +220,7 @@ export const defineConfig = (config: UserConfig) => { console.log(); if (config?.themeConfig?.rss?.enable) { await selfBuildEnd?.(siteConfig); - (await import('../plugin/rss'))?.genFeed(siteConfig); + (await import('./rss'))?.genFeed(siteConfig); } }; diff --git a/packages/vitepress-theme-async/plugin/rss.ts b/packages/vitepress-theme-async/config/rss.ts similarity index 100% rename from packages/vitepress-theme-async/plugin/rss.ts rename to packages/vitepress-theme-async/config/rss.ts diff --git a/packages/vitepress-theme-async/package.json b/packages/vitepress-theme-async/package.json index 4af393a..a3a3756 100644 --- a/packages/vitepress-theme-async/package.json +++ b/packages/vitepress-theme-async/package.json @@ -29,6 +29,7 @@ "composables", "config/index.js", "config/index.d.ts", + "plugin", "layouts", "styles", "types",