Skip to content

Commit 2a32c82

Browse files
committed
🔥 移除未使用的依赖
1 parent b74d832 commit 2a32c82

File tree

6 files changed

+12
-39
lines changed

6 files changed

+12
-39
lines changed

docs/.vitepress/navPlugins.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,16 @@ export const dirToSilderItem = (dir: string, parent_base = "/") => {
9999
return result;
100100
};
101101

102-
import matter from "gray-matter";
102+
import matter from "front-matter";
103103

104104
const getMarkdownMatadata = <T = {}>(
105105
content: string | Buffer,
106106
defaultMetadata?: T
107107
) => {
108-
const res = matter(content);
108+
const res = matter<T>(content as string);
109109
return {
110-
metadata: { ...defaultMetadata, ...res.data } as T,
111-
content: res.content,
110+
metadata: { ...defaultMetadata, ...res.attributes } as T,
111+
content: res.body,
112112
};
113113
};
114114

docs/.vitepress/theme/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import TwoslashFloatingVue from "@shikijs/vitepress-twoslash/client";
33
import "virtual:group-icons.css";
44
import "@shikijs/vitepress-twoslash/style.css";
5-
import "uno.css";
65
import type { EnhanceAppContext } from "vitepress";
76
import { default as DefaultTheme, default as Theme } from "vitepress/theme";
87
import { h } from "vue";

docs/.vitepress/uno.config.mts

Lines changed: 0 additions & 29 deletions
This file was deleted.

docs/.vitepress/vite.config.mts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { fileURLToPath } from "node:url";
2-
import UnoCSS from "unocss/vite";
32
import Components from "unplugin-vue-components/vite";
43
import { defineConfig } from "vite";
54
import { groupIconVitePlugin } from "vitepress-plugin-group-icons";
@@ -12,7 +11,13 @@ export default defineConfig({
1211
include: [/\.vue$/, /\.vue\?vue/, /\.md$/, /\.mdx$/],
1312
extensions: ["vue", "md", "mdx"],
1413
}),
15-
UnoCSS(fileURLToPath(new URL("./uno.config.ts", import.meta.url))),
1614
groupIconVitePlugin(),
1715
],
16+
css: {
17+
preprocessorOptions: {
18+
scss: {
19+
api: "modern"
20+
}
21+
}
22+
}
1823
});

docs/components.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// @ts-nocheck
33
// Generated by unplugin-vue-components
44
// Read more: https://github.com/vuejs/core/pull/3399
5+
// biome-ignore lint: disable
56
export {}
67

78
/* prettier-ignore */

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,11 @@
2222
"diff": "^7.0.0",
2323
"dotenv": "^16.4.7",
2424
"front-matter": "^4.0.2",
25-
"gray-matter": "^4.0.3",
2625
"import-meta-ponyfill": "^3.2.1",
2726
"openai": "^4.80.1",
2827
"postcss": "^8.5.1",
29-
"sass": "^1.83.4",
3028
"shiki": "^2.1.0",
3129
"tailwindcss": "^3.4.17",
32-
"unocss": "^65.4.0",
3330
"unplugin-vue-components": "^28.0.0",
3431
"vite": "^6.0.11",
3532
"vitepress": "^1.6.3",

0 commit comments

Comments
 (0)