File tree Expand file tree Collapse file tree 11 files changed +37
-20
lines changed Expand file tree Collapse file tree 11 files changed +37
-20
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ module.exports = {
16
16
PLACEHOLDER : 'readonly' ,
17
17
LAYOUT : 'readonly' ,
18
18
DEBUG : 'readonly' ,
19
- ENABLE_DARK_MODE : 'readonly'
19
+ ENABLE_DARK_MODE : 'readonly' ,
20
+ CLIENT_AGENTS : 'readonly'
20
21
} ,
21
22
parserOptions : {
22
23
parser : 'babel-eslint' ,
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export default {
30
30
hostUrl: HOST_URL ,
31
31
apiKey: API_KEY ,
32
32
indexUid: INDEX_UID ,
33
+ clientAgents: CLIENT_AGENTS ,
33
34
meilisearchOptions: {
34
35
limit:
35
36
MAX_SUGGESTIONS || this .$site .themeConfig .searchMaxSuggestions || 5 ,
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ You can also find an example in our [playground's `palette.styl` file](./playgro
139
139
140
140
## Compatibility with Meilisearch
141
141
142
- This package only guarantees the compatibility with the [ version v0.27 .0 of Meilisearch] ( https://github.com/meilisearch/meilisearch/releases/tag/v0.27 .0 ) .
142
+ This package only guarantees the compatibility with the [ version v0.28 .0 of Meilisearch] ( https://github.com/meilisearch/meilisearch/releases/tag/v0.28 .0 ) .
143
143
144
144
## Development Workflow and Contributing
145
145
Original file line number Diff line number Diff line change
1
+ const { version } = require ( './package.json' )
2
+
3
+ const constructClientAgents = ( clientAgents = [ ] ) => {
4
+ const vuepressAgents = `Meilisearch Vuepress (v${ version } )`
5
+
6
+ return clientAgents . concat ( vuepressAgents )
7
+ }
8
+
9
+ module . exports = {
10
+ constructClientAgents
11
+ }
Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' )
2
2
3
+ const { constructClientAgents } = require ( './client_agents' )
4
+
3
5
module . exports = ( options ) => {
4
6
return {
5
7
alias : {
@@ -15,7 +17,8 @@ module.exports = (options) => {
15
17
CROP_LENGTH : options . cropLength || 30 ,
16
18
LAYOUT : options . layout || 'columns' ,
17
19
DEBUG : options . debug || false ,
18
- ENABLE_DARK_MODE : options . enableDarkMode || false
20
+ ENABLE_DARK_MODE : options . enableDarkMode || false ,
21
+ CLIENT_AGENTS : constructClientAgents ( options . clientAgents ) || [ ]
19
22
}
20
23
}
21
24
}
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ module.exports = {
16
16
CROP_LENGTH : 30 ,
17
17
LAYOUT : 'columns' ,
18
18
DEBUG : false ,
19
- ENABLE_DARK_MODE : false
19
+ ENABLE_DARK_MODE : false ,
20
+ CLIENT_AGENTS : [ ]
20
21
}
21
22
}
Original file line number Diff line number Diff line change 11
11
},
12
12
"main" : " index.js" ,
13
13
"dependencies" : {
14
- "docs-searchbar.js" : " ^2.1.1 "
14
+ "docs-searchbar.js" : " ^2.2.0 "
15
15
},
16
16
"resolutions" : {
17
17
"yargs-parser" : " ^13.1.2"
Original file line number Diff line number Diff line change 9
9
"setup" : " node setup.js"
10
10
},
11
11
"dependencies" : {
12
- "meilisearch" : " ^0.25 .0" ,
12
+ "meilisearch" : " ^0.27 .0" ,
13
13
"vuepress" : " ^1.4.1" ,
14
14
"vuepress-theme-default-prefers-color-scheme" : " ^2.0.0"
15
15
}
Original file line number Diff line number Diff line change @@ -213,6 +213,6 @@ const { MeiliSearch } = require('meilisearch')
213
213
214
214
const response = await index . addDocuments ( dataset )
215
215
216
- const task = await client . waitForTask ( response . uid )
216
+ const task = await client . waitForTask ( response . taskUid )
217
217
console . log ( task )
218
218
} ) ( )
Original file line number Diff line number Diff line change 4837
4837
resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
4838
4838
integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=
4839
4839
4840
- meilisearch@^0.25 .0 :
4841
- version "0.25 .0"
4842
- resolved "https://registry.yarnpkg.com/meilisearch/-/meilisearch-0.25 .0.tgz#8e980fbdd36b9fe6ed606205e262418f21e64d84 "
4843
- integrity sha512-TSIJTh5lva7WHBaoG3arNYQXuIAQkcD3BY09h2nHhjHS/wzxWKJM45x5bEC67Grw8zXihVqqmWty4a4ps4S+tg ==
4840
+ meilisearch@^0.27 .0 :
4841
+ version "0.27 .0"
4842
+ resolved "https://registry.yarnpkg.com/meilisearch/-/meilisearch-0.27 .0.tgz#8bd57ddb77b975f93e054cb977b951c488ece297 "
4843
+ integrity sha512-kZOZFIuSO7c6xRf+Y2/9/h6A9pl0sCl/G44X4KuaSwxGbruOZPhmxbeVEgLHBv4pUFvQ56rNVTA/2d/5GCU1YA ==
4844
4844
dependencies :
4845
4845
cross-fetch "^3.1.5"
4846
4846
Original file line number Diff line number Diff line change @@ -3760,13 +3760,13 @@ dns-txt@^2.0.2:
3760
3760
dependencies :
3761
3761
buffer-indexof "^1.0.0"
3762
3762
3763
- docs-searchbar.js@^2.1.1 :
3764
- version "2.1.1 "
3765
- resolved "https://registry.yarnpkg.com/docs-searchbar.js/-/docs-searchbar.js-2.1.1 .tgz#ed9519c0f39a99ad9d231963245e4fc81edd994b "
3766
- integrity sha512-K9QkhpLUi8KRoEoI8Gz7dOAYHSPUZ0uB3qb0QkWsq9cU+FAMCZPQoePfN9TObTKcX95AYQUXHV2cgd1StHYWrg ==
3763
+ docs-searchbar.js@^2.2.0 :
3764
+ version "2.2.0 "
3765
+ resolved "https://registry.yarnpkg.com/docs-searchbar.js/-/docs-searchbar.js-2.2.0 .tgz#e60eb0ee4f67853c41fdf7d3a4ef6ac7ac2c8027 "
3766
+ integrity sha512-rleKMiTkxG14M+6yt3+H8H0w/GKxWsNMinf4+zTVz9aVi04oJ8u37kktTiW3qkpPl9VQ7/i7Yv9wykukMqVxfw ==
3767
3767
dependencies :
3768
3768
autocomplete.js "^0.38.1"
3769
- meilisearch "^0.25 .0"
3769
+ meilisearch "^0.27 .0"
3770
3770
to-factory "^1.0.0"
3771
3771
zepto "^1.2.0"
3772
3772
6673
6673
resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
6674
6674
integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=
6675
6675
6676
- meilisearch@^0.25 .0 :
6677
- version "0.25 .0"
6678
- resolved "https://registry.yarnpkg.com/meilisearch/-/meilisearch-0.25 .0.tgz#8e980fbdd36b9fe6ed606205e262418f21e64d84 "
6679
- integrity sha512-TSIJTh5lva7WHBaoG3arNYQXuIAQkcD3BY09h2nHhjHS/wzxWKJM45x5bEC67Grw8zXihVqqmWty4a4ps4S+tg ==
6676
+ meilisearch@^0.27 .0 :
6677
+ version "0.27 .0"
6678
+ resolved "https://registry.yarnpkg.com/meilisearch/-/meilisearch-0.27 .0.tgz#8bd57ddb77b975f93e054cb977b951c488ece297 "
6679
+ integrity sha512-kZOZFIuSO7c6xRf+Y2/9/h6A9pl0sCl/G44X4KuaSwxGbruOZPhmxbeVEgLHBv4pUFvQ56rNVTA/2d/5GCU1YA ==
6680
6680
dependencies :
6681
6681
cross-fetch "^3.1.5"
6682
6682
You can’t perform that action at this time.
0 commit comments