Skip to content

Commit b881457

Browse files
committed
update: 关闭评论区、更换可正常使用的搜索插件
1 parent da5adc5 commit b881457

6 files changed

Lines changed: 2993 additions & 12617 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Node modules
22
node_modules/
33

4+
#use pnpm please
5+
package-lock.json
6+
47
# Build files
58
packages/*/lib/
69

docs/.vuepress/config.ts

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { defineUserConfig } from "vuepress";
22
import theme from "./theme.js";
3-
import { commentPlugin } from "vuepress-plugin-comment2";
43
import { hopeTheme } from "vuepress-theme-hope";
5-
import { docsearchPlugin } from "@vuepress/plugin-docsearch";
6-
import { searchConsolePlugin } from 'vuepress-plugin-china-search-console'
4+
import { searchConsolePlugin } from 'vuepress-plugin-china-search-console';
5+
import { searchProPlugin } from "vuepress-plugin-search-pro";
76

87
export default defineUserConfig({
98
base: "/",
@@ -30,28 +29,9 @@ export default defineUserConfig({
3029
searchConsolePlugin({
3130
baiduId: "13aae466d578c10f526a87cba8e7db3e",
3231
}),
33-
docsearchPlugin({
34-
appId: "5QQU7F897X",
35-
apiKey: "8f8b4494d7a414b4eea44bdc3bd383b4",
36-
indexName: "arduino-luatos",
37-
locales: {
38-
"/": {
39-
placeholder: "搜索文档",
40-
translations: {
41-
button: {
42-
buttonText: "搜索文档",
43-
},
44-
},
45-
},
46-
// "/en/": {
47-
// placeholder: "Search Documentation",
48-
// translations: {
49-
// button: {
50-
// buttonText: "Search Documentation",
51-
// },
52-
// },
53-
// },
54-
},
32+
searchProPlugin({
33+
indexContent: true,
34+
autoSuggestions: false,
5535
}),
5636
],
5737
});

docs/.vuepress/theme.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ export default hopeTheme({
6262

6363
plugins: {
6464
// You should generate and use your own comment service
65-
comment: {
66-
provider: "Giscus",
67-
repo: "Air-duino/document",
68-
repoId: "R_kgDOJ8zwvQ",
69-
category: "comment",
70-
categoryId: "DIC_kwDOJ8zwvc4CYT9x",
71-
mapping: "pathname",
72-
lazyLoading: false,
73-
},
65+
// comment: {
66+
// provider: "Giscus",
67+
// repo: "Air-duino/document",
68+
// repoId: "R_kgDOJ8zwvQ",
69+
// category: "comment",
70+
// categoryId: "DIC_kwDOJ8zwvc4CYT9x",
71+
// mapping: "pathname",
72+
// lazyLoading: false,
73+
// },
7474

7575
// All features are enabled for demo, only preserve features you need here
7676
mdEnhance: {

0 commit comments

Comments
 (0)