Skip to content

Commit

Permalink
docs: support docsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed May 3, 2021
1 parent 8f3c98d commit 605bc78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/.vuepress/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ module.exports = {
['medium-zoom', {
selector: '.theme-default-content :not(a) > img:not(.no-zooming)',
}],
['@vuepress/docsearch', {
apiKey: '24a872e49e34cdb7736d132917a308c6',
indexName: 'koishi',
}],
['@vuepress/container', {
type: 'code-group',
before: (info) => {
Expand Down
5 changes: 3 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
"build": "vuepress build ."
},
"devDependencies": {
"@vuepress/plugin-register-components": "^2.0.0-beta.11",
"@vuepress/plugin-docsearch": "^2.0.0-beta.12",
"@vuepress/plugin-register-components": "^2.0.0-beta.12",
"diacritics": "^1.3.0",
"shiki": "^0.9.3",
"typescript": "^4.2.4",
"vuepress-plugin-medium-zoom": "^1.1.9",
"vuepress-vite": "^2.0.0-beta.11"
"vuepress-vite": "^2.0.0-beta.12"
}
}

0 comments on commit 605bc78

Please sign in to comment.