You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by li...@apache.org on 2020/09/08 04:10:44 UTC

[incubator-dolphinscheduler-website] branch master updated: Add clickable links to documents

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

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


The following commit(s) were added to refs/heads/master by this push:
     new bb94fc2  Add clickable links to documents
     new b5ac42b  Merge pull request #175 from break60/master
bb94fc2 is described below

commit bb94fc2b0a65d9f511a54b452ba2b0480147a86c
Author: break60 <79...@qq.com>
AuthorDate: Tue Sep 8 11:29:44 2020 +0800

    Add clickable links to documents
---
 site_config/site.js              |  2 ++
 src/components/header/index.jsx  |  2 +-
 src/components/header/index.scss | 17 +++++++++++++----
 3 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/site_config/site.js b/site_config/site.js
index d414548..fb0317b 100755
--- a/site_config/site.js
+++ b/site_config/site.js
@@ -15,6 +15,7 @@ export default {
       {
         key: 'docs',
         text: 'DOCS',
+        link: '/en-us/docs/1.3.2/user_doc/quick-start.html',
         children: [
           {
             key: 'docs1',
@@ -132,6 +133,7 @@ export default {
       {
         key: 'docs',
         text: '文档',
+        link: '/zh-cn/docs/1.3.2/user_doc/quick-start.html',
         children: [
           {
             key: 'docs1',
diff --git a/src/components/header/index.jsx b/src/components/header/index.jsx
index 2404ab6..df1b81f 100755
--- a/src/components/header/index.jsx
+++ b/src/components/header/index.jsx
@@ -216,7 +216,7 @@ class Header extends React.Component {
               item.children ? <SubMenu
               title={
                 <span className="submenu-title-wrapper">
-                  {item.text}
+                  <a href={getLink(item.link)} target={item.target || '_self'}>{item.text}</a>
                 </span>
               }
             >
diff --git a/src/components/header/index.scss b/src/components/header/index.scss
index 29e5d91..cb872b9 100755
--- a/src/components/header/index.scss
+++ b/src/components/header/index.scss
@@ -71,19 +71,28 @@
         }
       }
     }
+    .submenu-title-wrapper {
+      a {
+        color: #333;
+      }
+    }
     .whiteClass {
       .ant-menu-submenu-title {
         .submenu-title-wrapper {
-          color: #fff;
-          font-family: Avenir-Medium;
+          a {
+            color: #fff;
+            font-family: Avenir-Medium;
+          }
         }
       }
     }
     .blackClass {
       .ant-menu-submenu-title {
         .submenu-title-wrapper {
-          color: #333;
-          font-family: Avenir-Medium;
+          a {
+            color: #333;
+            font-family: Avenir-Medium;
+          }
         }
       }
     }