File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Node modules
22node_modules /
33
4+ # use pnpm please
5+ package-lock.json
6+
47# Build files
58packages /* /lib /
69
Original file line number Diff line number Diff line change 11import { defineUserConfig } from "vuepress" ;
22import theme from "./theme.js" ;
3- import { commentPlugin } from "vuepress-plugin-comment2" ;
43import { 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
87export 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} ) ;
Original file line number Diff line number Diff 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 : {
You can’t perform that action at this time.
0 commit comments