You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ji...@apache.org on 2022/06/16 08:47:16 UTC
[incubator-doris] 01/01: Revert "[doc](website)fix SSR bug and add algolia search (#10178)"
This is an automated email from the ASF dual-hosted git repository.
jiafengzheng pushed a commit to branch revert-10178-wyf0555
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
commit bdf164435536b55cd4821841235c6a6ec75b5a99
Author: jiafeng.zhang <zh...@gmail.com>
AuthorDate: Thu Jun 16 16:47:10 2022 +0800
Revert "[doc](website)fix SSR bug and add algolia search (#10178)"
This reverts commit dad953bc08ce172091f1bdbdb9ebcc57bc4eaae6.
---
docs/.vuepress/config.js | 9 +++++----
docs/.vuepress/public/images/ssb_v11_v015_compare.png | Bin 86762 -> 0 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 5d2c90e53e..82811667fa 100755
--- a/docs/.vuepress/config.js
+++ b/docs/.vuepress/config.js
@@ -18,9 +18,8 @@ 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 || "";
function convertSidebar(list, path) {
if (list.length > 0) {
@@ -40,7 +39,9 @@ function buildAlgoliaSearchConfig(lang) {
return {
apiKey: ALGOLIA_API_KEY,
indexName: ALGOLIA_INDEX_NAME,
- appId: ALGOLIA_APP_ID,
+ algoliaOptions: {
+ facetFilters: ["lang:" + lang, "version:" + BUILDING_BRANCH],
+ },
};
}
diff --git a/docs/.vuepress/public/images/ssb_v11_v015_compare.png b/docs/.vuepress/public/images/ssb_v11_v015_compare.png
deleted file mode 100644
index d2e2b5ba99..0000000000
Binary files a/docs/.vuepress/public/images/ssb_v11_v015_compare.png and /dev/null differ
diff --git a/docs/.vuepress/sidebar/en/docs.js b/docs/.vuepress/sidebar/en/docs.js
index db754625b0..f907f2f782 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 5d18239c19..57e90e33a2 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 8d45e1aa32..77b1f432dc 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" :showModule="recoShowModule">
+ <Common :sidebarItems="sidebarItems" v-if="renderComponent" :showModule="recoShowModule">
<component v-if="$frontmatter.home" :is="homeCom"/>
<Page v-else :sidebar-items="sidebarItems"/>
<Footer v-if="$frontmatter.home" class="footer" />
@@ -116,8 +116,7 @@ export default defineComponent({
$page,
$page.regularPath,
$site,
- $localePath,
- instance.renderComponent
+ $localePath
)
} else {
return []
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org