Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit fcdfed3

Browse files
authored
Merge pull request #156 from vuejs/feat/search
feat: support docsearch
2 parents 1dad978 + b7b6fbe commit fcdfed3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/.vuepress/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ module.exports = {
359359
},
360360
smoothScroll: false,
361361
algolia: {
362-
// indexName: 'vuejs-v3',
363-
// apiKey: 'bc6e8acb44ed4179c30d0a45d6140d3f'
362+
indexName: 'vuejs_cn3',
363+
apiKey: '773de665ca11d74cede4e35ecff46931'
364364
}
365365
},
366366
plugins: [

src/.vuepress/theme/components/Navbar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<SearchBox
2727
v-if="
2828
isAlgoliaSearch === false &&
29-
(
29+
!(
3030
$site.themeConfig.search !== false &&
3131
$page.frontmatter.search !== false
3232
)
@@ -68,7 +68,7 @@ export default {
6868
},
6969
7070
isAlgoliaSearch() {
71-
return !!(this.algolia && this.algolia.apiKey && this.algolia.indexName)
71+
return this.algolia && this.algolia.apiKey && this.algolia.indexName
7272
}
7373
},
7474

0 commit comments

Comments
 (0)