File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 9
9
"build" : " vuepress build src"
10
10
},
11
11
"dependencies" : {
12
+ "@docsearch/js" : " ^1.0.0-alpha.27" ,
13
+ "@docsearch/css" : " ^1.0.0-alpha.27" ,
12
14
"axios" : " ^0.19.1" ,
13
15
"showdown" : " ^1.9.1"
14
16
}
Original file line number Diff line number Diff line change @@ -41,12 +41,8 @@ export default {
41
41
},
42
42
initialize (userOptions , lang ) {
43
43
Promise .all ([
44
- import (
45
- /* webpackChunkName: "docsearch" */ ' ../node_modules/@docsearch/js'
46
- ),
47
- import (
48
- /* webpackChunkName: "docsearch" */ ' ../node_modules/@docsearch/css'
49
- )
44
+ import (/* webpackChunkName: "docsearch" */ ' @docsearch/js' ),
45
+ import (/* webpackChunkName: "docsearch" */ ' @docsearch/css' )
50
46
]).then (([docsearch ]) => {
51
47
docsearch = docsearch .default
52
48
@@ -58,7 +54,7 @@ export default {
58
54
userOptions,
59
55
{
60
56
container: ' #docsearch' ,
61
- // #697 Make docsearch work well at i18n mode.
57
+ // #697 Make DocSearch work well in i18n mode.
62
58
searchParameters: Object .assign (
63
59
{},
64
60
// lang && {
Original file line number Diff line number Diff line change 21
21
"author" : " Ben Hong" ,
22
22
"main" : " index.js" ,
23
23
"dependencies" : {
24
- "@docsearch/js" : " ^1.0.0-alpha.26" ,
25
- "@docsearch/css" : " ^1.0.0-alpha.26" ,
26
24
"@vuepress/plugin-active-header-links" : " ^1.3.1" ,
27
25
"@vuepress/plugin-nprogress" : " ^1.3.1" ,
28
26
"@vuepress/plugin-search" : " ^1.3.1" ,
29
- "docsearch.js" : " ^2.5.2" ,
30
27
"lodash" : " ^4.17.15" ,
31
28
"stylus" : " ^0.54.5" ,
32
29
"stylus-loader" : " ^3.0.2" ,
You can’t perform that action at this time.
0 commit comments