You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2021/12/16 02:41:20 UTC
[incubator-doris] branch master updated: [docs](website) develop the caseList component (#7402)
This is an automated email from the ASF dual-hosted git repository.
morningman 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 6dd312b [docs](website) develop the caseList component (#7402)
6dd312b is described below
commit 6dd312b21e95d676219de3a90d36508202f93144
Author: wangyongfeng <94...@qq.com>
AuthorDate: Thu Dec 16 10:41:11 2021 +0800
[docs](website) develop the caseList component (#7402)
Remove user cases to a submenu
---
docs/.vuepress/components/CaseList.vue | 102 +++++++++++++++++++++++++++++++
docs/.vuepress/sidebar/en.js | 7 +++
docs/.vuepress/sidebar/zh-CN.js | 7 +++
docs/.vuepress/theme/components/Home.vue | 4 +-
docs/en/case-user/case-user.md | 25 ++++++++
docs/zh-CN/case-user/case-user.md | 25 ++++++++
docs/zh-CN/downloads/downloads.md | 1 -
7 files changed, 168 insertions(+), 3 deletions(-)
diff --git a/docs/.vuepress/components/CaseList.vue b/docs/.vuepress/components/CaseList.vue
new file mode 100644
index 0000000..b1b14c3
--- /dev/null
+++ b/docs/.vuepress/components/CaseList.vue
@@ -0,0 +1,102 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+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
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<template>
+<div class="case-wrap">
+ <div
+ v-if="data.cases"
+ class="wrapper cases"
+ >
+ <div class="title">
+ {{ data.cases.title }}
+ </div>
+ <div class="sub-title">
+ {{ data.cases.subTitle }}
+ </div>
+ <div class="list">
+ <div
+ v-for="(cese, index) in data.cases.list"
+ :key="index"
+ class="case"
+ >
+ <img
+ v-if="cese.logo"
+ :src="$withBase(cese.logo)"
+ :alt="cese.alt"
+ >
+ </div>
+ </div>
+ </div>
+</div>
+
+</template>
+
+<script>
+export default {
+ name: 'CaseList',
+ computed: {
+ data() {
+ const lang = this.$lang
+ const homePages = this.$site.pages.filter(page => page.title === 'Home')
+ const currentHomePage = homePages.find(page => page.path.indexOf(lang) > -1)
+ return currentHomePage.frontmatter
+ },
+ }
+}
+</script>
+
+<style lang="stylus">
+.case-wrap
+ margin-left: -8em
+ margin-right -8em
+.wrapper
+ box-sizing border-box
+ max-width 1280px
+ padding 2em 2em 2em 2em
+ margin-left auto
+ margin-right auto
+ width 100%
+ .title
+ font-size 1.9rem
+ text-align center
+ color #595959
+ font-family PingFangSC-Medium
+ .sub-title
+ text-align center
+ font-family PingFangSC-Light
+ font-size 1.3rem
+ color #999999
+ padding-top 1rem
+.cases
+ padding 5rem 0rem
+ .list
+ padding 0.5rem 0
+ margin-top 2.5rem
+ display flex
+ flex-wrap wrap
+ justify-content flex-start
+ .case
+ flex-grow 1
+ flex-basis 25%
+ max-width 25%
+ padding: 1rem 0rem
+ text-align center
+ img
+ width 80%
+ margin 0 auto
+</style>
\ No newline at end of file
diff --git a/docs/.vuepress/sidebar/en.js b/docs/.vuepress/sidebar/en.js
index a772152..1001833 100644
--- a/docs/.vuepress/sidebar/en.js
+++ b/docs/.vuepress/sidebar/en.js
@@ -618,6 +618,13 @@ module.exports = [
],
},
{
+ title: "Doris User",
+ directoryPath: "case-user/",
+ children: [
+ "case-user",
+ ],
+ },
+ {
title: "Developer Guide",
directoryPath: "developer-guide/",
children: [
diff --git a/docs/.vuepress/sidebar/zh-CN.js b/docs/.vuepress/sidebar/zh-CN.js
index 46f2154..a3dda8e 100644
--- a/docs/.vuepress/sidebar/zh-CN.js
+++ b/docs/.vuepress/sidebar/zh-CN.js
@@ -622,6 +622,13 @@ module.exports = [
],
},
{
+ title: "Doris用户",
+ directoryPath: "case-user/",
+ children: [
+ "case-user",
+ ],
+ },
+ {
title: "开发者手册",
directoryPath: "developer-guide/",
children: [
diff --git a/docs/.vuepress/theme/components/Home.vue b/docs/.vuepress/theme/components/Home.vue
index 2c0ba6a..54945dc 100644
--- a/docs/.vuepress/theme/components/Home.vue
+++ b/docs/.vuepress/theme/components/Home.vue
@@ -138,7 +138,7 @@ under the License.
</div>
</div>
- <div
+ <!-- <div
v-if="data.cases"
class="wrapper cases"
>
@@ -161,7 +161,7 @@ under the License.
>
</div>
</div>
- </div>
+ </div> -->
<footer class="footer">
<CustomFooter />
diff --git a/docs/en/case-user/case-user.md b/docs/en/case-user/case-user.md
new file mode 100644
index 0000000..36f71d0
--- /dev/null
+++ b/docs/en/case-user/case-user.md
@@ -0,0 +1,25 @@
+---
+{
+ "title": "user case",
+ "language": "en"
+}
+---
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+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
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<CaseList/>
\ No newline at end of file
diff --git a/docs/zh-CN/case-user/case-user.md b/docs/zh-CN/case-user/case-user.md
new file mode 100644
index 0000000..9b09b2b
--- /dev/null
+++ b/docs/zh-CN/case-user/case-user.md
@@ -0,0 +1,25 @@
+---
+{
+ "title": "用户案例",
+ "language": "zh-CN"
+}
+---
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+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
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<CaseList/>
\ No newline at end of file
diff --git a/docs/zh-CN/downloads/downloads.md b/docs/zh-CN/downloads/downloads.md
index ca50925..b554d51 100644
--- a/docs/zh-CN/downloads/downloads.md
+++ b/docs/zh-CN/downloads/downloads.md
@@ -4,7 +4,6 @@
"language": "zh-CN"
}
---
-
# 下载
您可以通过以下连接下载对应版本的 Doris 源码进行编译和部署。
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org