Skip to content

Commit 82dca87

Browse files
committed
Update package.json
1 parent 2230a7e commit 82dca87

File tree

3 files changed

+820
-214
lines changed

3 files changed

+820
-214
lines changed

docs/.vuepress/config.ts

+23-4
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,44 @@
11
import { viteBundler } from '@vuepress/bundler-vite'
22
import { registerComponentsPlugin } from '@vuepress/plugin-register-components'
3+
import { docsearchPlugin } from '@vuepress/plugin-docsearch'
34
import { searchPlugin } from '@vuepress/plugin-search'
45
import { defaultTheme } from '@vuepress/theme-default'
56
import { defineUserConfig } from 'vuepress/cli'
67
import { getDirname, path } from 'vuepress/utils'
78

8-
99
const __dirname = import.meta.dirname || getDirname(import.meta.url)
1010

1111
export default defineUserConfig({
1212
lang: 'zh-CN',
1313
title: 'Mapbox GL JS Cookbook',
1414
description: 'Mapbox GL JS Cookbook',
1515
base: '/mapbox-gl-js-cookbook/',
16-
head: [['link', { rel: 'icon', href: '/mapbox-gl-js-cookbook/assets/logo.png' }]],
16+
head: [
17+
['link', { rel: 'icon', href: '/mapbox-gl-js-cookbook/assets/logo.png' }],
18+
// <meta name="algolia-site-verification" content="5BFCC22EEF46CEE6" />
19+
['meta', { name: 'algolia-site-verification', content: '5BFCC22EEF46CEE6' }],
20+
],
1721
alias: {
1822
'@': path.resolve(__dirname, './'),
1923
},
2024
plugins: [
21-
searchPlugin({
22-
// 配置项
25+
// searchPlugin({
26+
// // 配置项
27+
// }),
28+
docsearchPlugin({
29+
appId: 'O28CRXQHGQ',
30+
apiKey: 'fa3d7a24cc80e676ff6553e308f28527',
31+
indexName: 'naivemap',
32+
locales: {
33+
'/': {
34+
placeholder: '搜索文档',
35+
translations: {
36+
button: {
37+
buttonText: '搜索文档',
38+
},
39+
},
40+
},
41+
},
2342
}),
2443
registerComponentsPlugin({
2544
// 配置项

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,19 @@
1717
"devDependencies": {
1818
"@typescript-eslint/eslint-plugin": "^7.1.1",
1919
"@typescript-eslint/parser": "^7.1.1",
20-
"@vuepress/bundler-vite": "^2.0.0-rc.18",
21-
"@vuepress/plugin-register-components": "2.0.0-rc.54",
22-
"@vuepress/plugin-search": "2.0.0-rc.63",
23-
"@vuepress/theme-default": "^2.0.0-rc.18",
20+
"@vuepress/bundler-vite": "^2.0.0-rc.19",
21+
"@vuepress/plugin-docsearch": "2.0.0-rc.67",
22+
"@vuepress/plugin-register-components": "^2.0.0-rc.66",
23+
"@vuepress/plugin-search": "^2.0.0-rc.66",
24+
"@vuepress/theme-default": "^2.0.0-rc.66",
2425
"eslint": "^8.57.0",
2526
"eslint-config-prettier": "^9.1.0",
2627
"eslint-plugin-prettier": "^5.1.3",
2728
"eslint-plugin-vue": "^9.22.0",
2829
"prettier": "^3.2.5",
2930
"sass": "^1.82.0",
3031
"vue": "^3.4.0",
31-
"vuepress": "^2.0.0-rc.18"
32+
"vuepress": "^2.0.0-rc.19"
3233
},
3334
"dependencies": {
3435
"@deck.gl/aggregation-layers": "^8.9.35",

0 commit comments

Comments
 (0)