You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2023/03/02 09:02:36 UTC
[iotdb] branch master updated: fix(site):fix home url error (#9202)
This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 9ca90fbf71 fix(site):fix home url error (#9202)
9ca90fbf71 is described below
commit 9ca90fbf719fbd894e203240887472936571f640
Author: CritasWang <cr...@outlook.com>
AuthorDate: Thu Mar 2 17:02:28 2023 +0800
fix(site):fix home url error (#9202)
---
docs/README.md | 2 ++
docs/zh/README.md | 3 +++
site/src/main/.vuepress/components/IoTDB.vue | 6 +++---
site/src/main/.vuepress/components/IoTDBZH.vue | 6 +++---
site/src/main/.vuepress/theme.ts | 8 ++++----
5 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/docs/README.md b/docs/README.md
index a08f82df39..6e7420c0a2 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -21,4 +21,6 @@ home: true
under the License.
-->
+<client-only>
<IoTDB/>
+</client-only>
\ No newline at end of file
diff --git a/docs/zh/README.md b/docs/zh/README.md
index 649c688481..1edd377fa0 100644
--- a/docs/zh/README.md
+++ b/docs/zh/README.md
@@ -21,4 +21,7 @@ home: true
under the License.
-->
+<client-only>
<IoTDBZH/>
+</client-only>
+
diff --git a/site/src/main/.vuepress/components/IoTDB.vue b/site/src/main/.vuepress/components/IoTDB.vue
index e775b143f1..722e8ed1ab 100644
--- a/site/src/main/.vuepress/components/IoTDB.vue
+++ b/site/src/main/.vuepress/components/IoTDB.vue
@@ -182,16 +182,16 @@ export default {
},
methods: {
addRoutes1() {
- this.$router.push('/Download/');
+ window.location.href = '/Download/';
},
addRoutes2() {
- this.$router.push('/UserGuide/Master/QuickStart/QuickStart.html');
+ window.location.href = '/UserGuide/Master/QuickStart/QuickStart.html';
},
},
};
</script>
-<style scoped>
+<style lang="scss" scoped>
.project-name {
font-size: 20px;
diff --git a/site/src/main/.vuepress/components/IoTDBZH.vue b/site/src/main/.vuepress/components/IoTDBZH.vue
index 0cedccc201..55af60b2d2 100644
--- a/site/src/main/.vuepress/components/IoTDBZH.vue
+++ b/site/src/main/.vuepress/components/IoTDBZH.vue
@@ -180,16 +180,16 @@ export default {
},
methods: {
addRoutes1() {
- this.$router.push('/zh/Download/');
+ window.location.href = '/zh//Download/';
},
addRoutes2() {
- this.$router.push('/zh/UserGuide/Master/QuickStart/QuickStart.html');
+ window.location.href = '/zh//UserGuide/Master/QuickStart/QuickStart.html';
},
},
};
</script>
-<style scoped>
+<style lang="scss" scoped>
.project-name {
font-size: 20px;line-height:23px;margin: 10px 0 20px 0;font-family: 'Arimo', sans-serif;
text-transform: uppercase;
diff --git a/site/src/main/.vuepress/theme.ts b/site/src/main/.vuepress/theme.ts
index e8beea2262..7de3bf5da7 100644
--- a/site/src/main/.vuepress/theme.ts
+++ b/site/src/main/.vuepress/theme.ts
@@ -6,9 +6,7 @@
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
-
http://www.apache.org/licenses/LICENSE-2.0
-
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -24,7 +22,7 @@ import { enSidebar, zhSidebar } from './sidebar/index.js';
export default hopeTheme({
hostname: 'https://iotdb.apache.org/',
- darkmode: 'disable',
+ darkmode: 'toggle',
iconAssets: 'iconfont',
@@ -44,10 +42,12 @@ export default hopeTheme({
breadcrumb: false,
+ navbarIcon: false,
+
navbarLayout: {
start: ['Brand'],
center: [],
- end: ['Search', 'Links', 'Language', 'Repo'],
+ end: ['Search', 'Links', 'Language', 'Outlook', 'Repo'],
},
locales: {