This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push: new de86c0dd25 [doc](website)fix algolia search bug (#10196) de86c0dd25 is described below commit de86c0dd256707031c6301dfe2934649dc62cff7 Author: wangyongfeng <943155...@qq.com> AuthorDate: Fri Jun 17 08:51:28 2022 +0800 [doc](website)fix algolia search bug (#10196) --- docs/.vuepress/config.js | 18 +++++++++--------- docs/.vuepress/theme/components/AlgoliaSearchBox.vue | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 5d2c90e53e..97477209c8 100755 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -18,9 +18,9 @@ under the License. */ const BUILDING_BRANCH = process.env.BRANCH || ""; -const ALGOLIA_API_KEY = process.env.ALGOLIA_API_KEY || "b2d5b814db43536017c701c9c19b29bf"; -const ALGOLIA_INDEX_NAME = process.env.ALGOLIA_INDEX_NAME || "apache-doris"; -const ALGOLIA_APP_ID = process.env.ALGOLIA_APP_ID || "UUKF60R98F"; +const ALGOLIA_API_KEY = process.env.ALGOLIA_API_KEY || ""; +const ALGOLIA_INDEX_NAME = process.env.ALGOLIA_INDEX_NAME || ""; +const ALGOLIA_APP_ID = process.env.ALGOLIA_APP_ID || ""; function convertSidebar(list, path) { if (list.length > 0) { @@ -112,8 +112,8 @@ module.exports = { { text: "master", link: "/en/docs/get-starting/get-starting.html", - } - ] + }, + ], }, // 导航栏 nav: [ @@ -125,7 +125,7 @@ module.exports = { { text: "Blog", icon: "doris doris-xiala", - name: 'blog', + name: "blog", items: [ // { text: "Doris Weekly", link: "/en/categories/DorisWeekly/" }, { text: "Best Practice", link: "/en/categories/PracticalCases/" }, @@ -205,8 +205,8 @@ module.exports = { { text: "master", link: "/zh-CN/docs/get-starting/get-starting.html", - } - ] + }, + ], }, // 导航栏 nav: [ @@ -218,7 +218,7 @@ module.exports = { { text: "博客", icon: "doris doris-xiala", - name: 'blog', + name: "blog", items: [ // { text: "每周通报", link: "/zh-CN/categories/DorisWeekly/" }, { text: "最佳实践", link: "/zh-CN/categories/PracticalCases/" }, diff --git a/docs/.vuepress/theme/components/AlgoliaSearchBox.vue b/docs/.vuepress/theme/components/AlgoliaSearchBox.vue index bad9f95aa7..2c9ccba86a 100644 --- a/docs/.vuepress/theme/components/AlgoliaSearchBox.vue +++ b/docs/.vuepress/theme/components/AlgoliaSearchBox.vue @@ -63,7 +63,7 @@ export default defineComponent({ }, algoliaOptions), handleSelected: (input, event, suggestion) => { const { pathname, hash } = new URL(suggestion.url) - this.$router.push(`${pathname}${hash}`) + instance.$router.push(`${pathname}${hash}`) } } )) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org