Skip to content

Commit a0fef01

Browse files
committed
updates
1 parent 2efcd06 commit a0fef01

File tree

4 files changed

+92
-2
lines changed

4 files changed

+92
-2
lines changed

package-lock.json

Lines changed: 81 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
},
1313
"devDependencies": {
1414
"@vuepress/bundler-vite": "2.0.0-rc.23",
15+
"@vuepress/plugin-slimsearch": "2.0.0-rc.104",
16+
"@vuepress/plugin-search": "2.0.0-rc.104",
1517
"mathjax-full": "^3.2.2",
1618
"sass-embedded": "^1.88.0",
1719
"vue": "^3.5.13",

src/.vuepress/config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineUserConfig } from "vuepress";
2+
import { slimsearchPlugin } from '@vuepress/plugin-slimsearch'
23

34
import theme from "./theme.js";
45

@@ -11,6 +12,12 @@ export default defineUserConfig({
1112

1213
theme,
1314

15+
plugins: [
16+
slimsearchPlugin({
17+
indexContent: true
18+
}),
19+
],
20+
1421
// 和 PWA 一起启用
1522
// shouldPrefetch: false,
16-
});
23+
});

src/.vuepress/styles/config.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// you can change config here
2-
$theme-color: #096dd9;
2+
$theme-color: #096dd9;

0 commit comments

Comments
 (0)