You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tubemq.apache.org by za...@apache.org on 2020/02/12 10:01:05 UTC

[incubator-tubemq-website] branch master updated: [add] contact button 2 the home page & contact doc

This is an automated email from the ASF dual-hosted git repository.

zakwu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tubemq-website.git


The following commit(s) were added to refs/heads/master by this push:
     new ac95c98  [add] contact button 2 the home page & contact doc
ac95c98 is described below

commit ac95c9854552fae7cc5b9a78216ec2985fd5da6c
Author: zakwu <za...@tencent.com>
AuthorDate: Wed Feb 12 18:00:53 2020 +0800

    [add] contact button 2 the home page & contact doc
---
 docs/en-us/contact.md           | 32 ++++++++++++++++++++++++++++++++
 docs/zh-cn/contact.md           | 32 ++++++++++++++++++++++++++++++++
 md_json/docs.json               | 10 ++++++++++
 site_config/docs.js             |  8 ++++++++
 site_config/home.jsx            | 12 ++++++++++--
 src/components/button/index.jsx |  1 +
 src/pages/home/index.jsx        |  2 +-
 7 files changed, 94 insertions(+), 3 deletions(-)

diff --git a/docs/en-us/contact.md b/docs/en-us/contact.md
new file mode 100644
index 0000000..8bca60c
--- /dev/null
+++ b/docs/en-us/contact.md
@@ -0,0 +1,32 @@
+Apache TubeMQ
+==============================================
+[![Build Status](https://travis-ci.org/apache/incubator-tubemq.svg?branch=master)](https://travis-ci.org/apache/incubator-tubemq)
+
+Apache TubeMQ (incubating) is a trillion-records-scale distributed messaging queue (MQ) system, focuses on data transmission and storage under massive data. Compared to many open source MQ projects, TubeMQ has unique advantages in terms of stability, performance, and low cost.
+
+
+Contact
+-------
+
+
+- Mailing lists
+
+| Name                                                                          | Scope                           |                                                                 |                                                                     |                                                                              |
+|:------------------------------------------------------------------------------|:--------------------------------|:----------------------------------------------------------------|:--------------------------------------------------------------------|:-----------------------------------------------------------------------------|
+| [dev@tubemq.apache.org](mailto:dev@tubemq.apache.org)     | Development-related discussions | [Subscribe](mailto:dev-subscribe@tubemq.apache.org)   | [Unsubscribe](mailto:dev-unsubscribe@tubemq.apache.org)   | [Archives](http://mail-archives.apache.org/mod_mbox/tubemq-dev/)   |
+
+
+- Issue management
+  [See JIRA](https://issues.apache.org/jira/browse/TubeMQ)
+
+
+Build and Deploy
+-------
+- [See user guide](./docs/tubemq_user_guide.md)
+
+
+License
+-------
+© Contributors Licensed under an [Apache-2.0](LICENSE) license.
+
+
diff --git a/docs/zh-cn/contact.md b/docs/zh-cn/contact.md
new file mode 100644
index 0000000..8bca60c
--- /dev/null
+++ b/docs/zh-cn/contact.md
@@ -0,0 +1,32 @@
+Apache TubeMQ
+==============================================
+[![Build Status](https://travis-ci.org/apache/incubator-tubemq.svg?branch=master)](https://travis-ci.org/apache/incubator-tubemq)
+
+Apache TubeMQ (incubating) is a trillion-records-scale distributed messaging queue (MQ) system, focuses on data transmission and storage under massive data. Compared to many open source MQ projects, TubeMQ has unique advantages in terms of stability, performance, and low cost.
+
+
+Contact
+-------
+
+
+- Mailing lists
+
+| Name                                                                          | Scope                           |                                                                 |                                                                     |                                                                              |
+|:------------------------------------------------------------------------------|:--------------------------------|:----------------------------------------------------------------|:--------------------------------------------------------------------|:-----------------------------------------------------------------------------|
+| [dev@tubemq.apache.org](mailto:dev@tubemq.apache.org)     | Development-related discussions | [Subscribe](mailto:dev-subscribe@tubemq.apache.org)   | [Unsubscribe](mailto:dev-unsubscribe@tubemq.apache.org)   | [Archives](http://mail-archives.apache.org/mod_mbox/tubemq-dev/)   |
+
+
+- Issue management
+  [See JIRA](https://issues.apache.org/jira/browse/TubeMQ)
+
+
+Build and Deploy
+-------
+- [See user guide](./docs/tubemq_user_guide.md)
+
+
+License
+-------
+© Contributors Licensed under an [Apache-2.0](LICENSE) license.
+
+
diff --git a/md_json/docs.json b/md_json/docs.json
index fb4251b..d7a65ad 100644
--- a/md_json/docs.json
+++ b/md_json/docs.json
@@ -1,6 +1,11 @@
 {
   "en-us": [
     {
+      "filename": "contact.md",
+      "link": "/en-us/docs/contact.html",
+      "meta": {}
+    },
+    {
       "filename": "http_access_API_definition.md",
       "link": "/en-us/docs/http_access_API_definition.html",
       "meta": {}
@@ -43,6 +48,11 @@
   ],
   "zh-cn": [
     {
+      "filename": "contact.md",
+      "link": "/zh-cn/docs/contact.html",
+      "meta": {}
+    },
+    {
       "filename": "http_access_API_definition.md",
       "link": "/zh-cn/docs/http_access_API_definition.html",
       "meta": {}
diff --git a/site_config/docs.js b/site_config/docs.js
index 72102f2..7fd03c2 100644
--- a/site_config/docs.js
+++ b/site_config/docs.js
@@ -8,6 +8,10 @@ export default {
             title: 'user guide',
             link: '/en-us/docs/tubemq_user_guide.html',
           },
+          {
+            title: 'contact',
+            link: '/en-us/docs/contact.html'
+          }
           // {
           //   title: 'demo2',
           //   link: '/en-us/docs/demo2.html',
@@ -36,6 +40,10 @@ export default {
             title: '用户指南',
             link: '/zh-cn/docs/tubemq_user_guide.html',
           },
+          {
+            title: '联系我们',
+            link: '/zh-cn/docs/contact.html'
+          }
           // {
           //   title: '示例2',
           //   link: '/zh-cn/docs/demo2.html',
diff --git a/site_config/home.jsx b/site_config/home.jsx
index 9783bb7..50ed46a 100644
--- a/site_config/home.jsx
+++ b/site_config/home.jsx
@@ -1,5 +1,3 @@
-import React from 'react';
-
 export default {
   'zh-cn': {
     brand: {
@@ -12,6 +10,11 @@ export default {
           link: '/zh-cn/docs/tubemq_user_guide.html',
           type: 'primary',
         },
+        {
+          text: '联系我们',
+          link: '/zh-cn/docs/contact.html',
+          type: 'primary',
+        },
       ],
     },
     introduction: {
@@ -65,6 +68,11 @@ export default {
           link: '/en-us/docs/tubemq_user_guide.html',
           type: 'primary',
         },
+        {
+          text: 'Contact',
+          link: '/en-us/docs/contact.html',
+          type: 'primary',
+        }
       ],
     },
     introduction: {
diff --git a/src/components/button/index.jsx b/src/components/button/index.jsx
index 49da2c0..69929ff 100644
--- a/src/components/button/index.jsx
+++ b/src/components/button/index.jsx
@@ -25,6 +25,7 @@ const Button = (props) => {
       }
       target={props.target || '_self'}
       href={getLink(props.link)}
+      style={{marginRight: '50px'}}
     >
       {props.children}
     </a>
diff --git a/src/pages/home/index.jsx b/src/pages/home/index.jsx
index d19bf1e..66e3f63 100644
--- a/src/pages/home/index.jsx
+++ b/src/pages/home/index.jsx
@@ -55,7 +55,7 @@ class Home extends Language {
             <p className="product-desc">{dataSource.brand.briefIntroduction}</p>
             <div className="button-area">
             {
-              dataSource.brand.buttons.map(b => <Button type={b.type} key={b.type} link={b.link} target={b.target}>{b.text}</Button>)
+              dataSource.brand.buttons.map((b, index) => <Button type={b.type} key={index} link={b.link} target={b.target}>{b.text}</Button>)
             }
             </div>
           </div>