This is an automated email from the ASF dual-hosted git repository. jiafengzheng 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 dad953bc08 [doc](website)fix SSR bug and add algolia search (#10178) dad953bc08 is described below commit dad953bc08ce172091f1bdbdb9ebcc57bc4eaae6 Author: wangyongfeng <943155...@qq.com> AuthorDate: Thu Jun 16 14:25:46 2022 +0800 [doc](website)fix SSR bug and add algolia search (#10178) * fix ssr bug and add algolia search --- docs/.vuepress/config.js | 9 ++++----- docs/.vuepress/public/images/ssb_v11_v015_compare.png | Bin 0 -> 86762 bytes docs/.vuepress/sidebar/en/docs.js | 2 +- docs/.vuepress/sidebar/zh-CN/docs.js | 2 +- docs/.vuepress/theme/layouts/Layout.vue | 5 +++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 82811667fa..5d2c90e53e 100755 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -18,8 +18,9 @@ under the License. */ const BUILDING_BRANCH = process.env.BRANCH || ""; -const ALGOLIA_API_KEY = process.env.ALGOLIA_API_KEY || ""; -const ALGOLIA_INDEX_NAME = process.env.ALGOLIA_INDEX_NAME || ""; +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"; function convertSidebar(list, path) { if (list.length > 0) { @@ -39,9 +40,7 @@ function buildAlgoliaSearchConfig(lang) { return { apiKey: ALGOLIA_API_KEY, indexName: ALGOLIA_INDEX_NAME, - algoliaOptions: { - facetFilters: ["lang:" + lang, "version:" + BUILDING_BRANCH], - }, + appId: ALGOLIA_APP_ID, }; } diff --git a/docs/.vuepress/public/images/ssb_v11_v015_compare.png b/docs/.vuepress/public/images/ssb_v11_v015_compare.png new file mode 100644 index 0000000000..d2e2b5ba99 Binary files /dev/null and b/docs/.vuepress/public/images/ssb_v11_v015_compare.png differ diff --git a/docs/.vuepress/sidebar/en/docs.js b/docs/.vuepress/sidebar/en/docs.js index f907f2f782..db754625b0 100644 --- a/docs/.vuepress/sidebar/en/docs.js +++ b/docs/.vuepress/sidebar/en/docs.js @@ -793,7 +793,7 @@ module.exports = [ "SHOW-TRANSACTION", "SHOW-TRIGGERS", "SHOW-TRASH", - "SHOW-USER", + // "SHOW-USER", "SHOW-VARIABLES", "SHOW-VIEW", "SHOW-WARNING", diff --git a/docs/.vuepress/sidebar/zh-CN/docs.js b/docs/.vuepress/sidebar/zh-CN/docs.js index 57e90e33a2..5d18239c19 100644 --- a/docs/.vuepress/sidebar/zh-CN/docs.js +++ b/docs/.vuepress/sidebar/zh-CN/docs.js @@ -793,7 +793,7 @@ module.exports = [ "SHOW-TRANSACTION", "SHOW-TRIGGERS", "SHOW-TRASH", - "SHOW-USER", + // "SHOW-USER", "SHOW-VARIABLES", "SHOW-VIEW", "SHOW-WARNING", diff --git a/docs/.vuepress/theme/layouts/Layout.vue b/docs/.vuepress/theme/layouts/Layout.vue index 77b1f432dc..8d45e1aa32 100644 --- a/docs/.vuepress/theme/layouts/Layout.vue +++ b/docs/.vuepress/theme/layouts/Layout.vue @@ -16,7 +16,7 @@ specific language governing permissions and limitations under the License. --> <template> - <Common :sidebarItems="sidebarItems" v-if="renderComponent" :showModule="recoShowModule"> + <Common :sidebarItems="sidebarItems" :showModule="recoShowModule"> <component v-if="$frontmatter.home" :is="homeCom"/> <Page v-else :sidebar-items="sidebarItems"/> <Footer v-if="$frontmatter.home" class="footer" /> @@ -116,7 +116,8 @@ export default defineComponent({ $page, $page.regularPath, $site, - $localePath + $localePath, + instance.renderComponent ) } else { return [] --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org