Skip to content

Commit

Permalink
docs: 文档启用 Algolia 搜索
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuh12 committed Jul 10, 2019
1 parent 0cb17d8 commit bda3831
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 29 deletions.
2 changes: 1 addition & 1 deletion demo/components/AppAside.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default {
{ text: '过渡效果', to: '/transition/' },
{ text: '初始展示页签', to: '/initial-tabs/' },
{
text: 'i18n',
text: '多语言支持',
children: [
{ text: '页签国际化', to: '/i18n/' },
{ text: '组件语言', to: '/lang-en/' },
Expand Down
35 changes: 8 additions & 27 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,32 +56,7 @@ module.exports = {
]
}
]
}/* [
'/guide/',
'/guide/installation',
{
title: '基础',
collapsable: false,
children: [
'/guide/essentials/',
'/guide/essentials/operate',
'/guide/essentials/rule',
'/guide/essentials/i18n'
]
},
{
title: '进阶',
collapsable: false,
children: [
'/guide/advanced/',
'/guide/advanced/transition',
'/guide/advanced/slot',
'/guide/advanced/initial-tabs',
'/guide/advanced/dynamic-tab-info',
'/guide/advanced/page-leave'
]
}
] */,
},

// Demo路径
demoUrl: demoUrl,
Expand All @@ -95,6 +70,12 @@ module.exports = {
docsBranch: 'dev',

lastUpdated: '上次更新',

// Algolia 搜索
algolia: {
apiKey: 'fdd2c011c382dd55036237094d62bd9e',
indexName: 'vue-router-tab'
}
},

// markdow 配置
Expand All @@ -112,4 +93,4 @@ module.exports = {
},
'@vuepress/back-to-top': true
}
}
}
2 changes: 1 addition & 1 deletion docs/guide/essentials/i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

**配置自定义国际化方法**

``` html
``` html {2,9}
<template>
<router-tab :i18n="i18n" />
</template>
Expand Down

0 comments on commit bda3831

Please sign in to comment.