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

nielifeng pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-seatunnel-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 5b26872  [Chore][homepage] Modify Slack link (#76)
5b26872 is described below

commit 5b268724b819a7bb8207cf4b06ccf96563f5416b
Author: ChunFu Wu <[email protected]>
AuthorDate: Mon Mar 14 14:30:48 2022 +0800

    [Chore][homepage] Modify Slack link (#76)
    
    * [Chore][homepage] Modify Slack link
    
    * [Chore][build] Modify replace rules
---
 docusaurus.config.js          | 13 +++++------
 src/pages/download/data.js    | 11 ---------
 src/pages/download/index.jsx  | 53 -------------------------------------------
 src/pages/download/index.less | 14 ------------
 src/pages/home/index.jsx      |  7 ++++++
 static/home/icons/slack.svg   | 12 ++++++++++
 tools/build-docs.sh           |  7 +++---
 7 files changed, 29 insertions(+), 88 deletions(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index c591baa..a5a97a4 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -85,10 +85,9 @@ const config = {
                     ]
                 },
                 {
-                    to: '/download',
+                    to: 
'https://github.com/apache/incubator-seatunnel/releases',
                     position: 'right',
-                    label: 'Download',
-                    activeBaseRegex: `/download`,
+                    label: 'Download'
                 },
                 {
                     label: 'Community',
@@ -214,10 +213,10 @@ const config = {
                 <p style="color: 
#999999;font-weight:400;text-align:left">Apache SeaTunnel is an effort 
undergoing incubation at The Apache Software Foundation (ASF), sponsored by the 
Apache Incubator. Incubation is required of all newly accepted projects until a 
further review indicates that the infrastructure, communications, and decision 
making process have stabilized in a manner consistent with other successful ASF 
projects. While incubation status is not necessarily a reflection of  [...]
                 <div style="border-top: 1px solid #ccc;min-height: 
60px;line-height: 20px;text-align: center;font-family: Avenir-Medium;font-size: 
14px;color: #999;display: flex;align-items: center;"><span>Copyright © 
2021-${new Date().getFullYear()} The Apache Software Foundation. Apache 
SeaTunnel, SeaTunnel, and its feather logo are trademarks of The Apache 
Software Foundation.</span></div>
                 <div style="text-align: center;">
-                    <a href="https://twitter.com/asfseatunnel?s=21"; 
target="_blank" title="Twitter" ><svg t="1644553365083" class="icon" viewBox="0 
0 1260 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"; p-id="7015" 
width="25" height="25"><path d="M1259.846921 121.148242c-46.524504 
20.728739-96.273478 34.547899-148.325646 40.536201 53.434084-31.784067 
94.430924-82.454319 113.777747-142.797982-50.209613 29.480874-105.486251 
51.13089-164.447999 62.646857A257.584528 257.584528 0 0 0 8 [...]
-                    <a href="https://apacheseatunnel.slack.com"; 
target="_blank" title="Slack" style="margin-left: 20px;"><svg t="1644553076784" 
class="icon" viewBox="0 0 1024 1024" version="1.1" 
xmlns="http://www.w3.org/2000/svg"; p-id="3088" width="23" height="23"><path 
d="M215.125333 647.04a107.861333 107.861333 0 0 1-107.52 107.648A107.861333 
107.861333 0 0 1 0 647.04a107.818667 107.818667 0 0 1 
107.605333-107.52h107.52v107.52z m54.229334 0a107.818667 107.818667 0 0 1 
107.562666-107.52 [...]
-                    <a 
href="https://lists.apache.org/[email protected]"; 
target="_blank" title="Mailing list" style="margin-left: 20px;"><svg 
t="1644553175467" class="icon" viewBox="0 0 1024 1024" version="1.1" 
xmlns="http://www.w3.org/2000/svg"; p-id="5304" width="26" height="26"><path 
d="M853.333333 170.666667H170.666667c-46.933333 0-85.333333 38.4-85.333334 
85.333333v512c0 46.933333 38.4 85.333333 85.333334 
85.333333h682.666666c46.933333 0 85.333333-38.4 85.333334-85.3 [...]
-                    <a href="https://github.com/apache/incubator-seatunnel"; 
target="_blank" title="GitHub" style="margin-left: 20px;"><svg 
t="1644553223000" class="icon" viewBox="0 0 1024 1024" version="1.1" 
xmlns="http://www.w3.org/2000/svg"; p-id="6156" width="23" height="23"><path 
d="M512 12.64c-282.752 0-512 229.216-512 512 0 226.208 146.72 418.144 350.144 
485.824 25.6 4.736 35.008-11.104 35.008-24.64 
0-12.192-0.48-52.544-0.704-95.328-142.464 
30.976-172.512-60.416-172.512-60.416-23.29 [...]
+                    <a href="https://twitter.com/asfseatunnel?s=21"; 
target="_blank" title="Twitter" ><svg t="1644553365083" class="icon" viewBox="0 
0 1260 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"; p-id="7015" 
width="38" height="38"><path d="M1259.846921 121.148242c-46.524504 
20.728739-96.273478 34.547899-148.325646 40.536201 53.434084-31.784067 
94.430924-82.454319 113.777747-142.797982-50.209613 29.480874-105.486251 
51.13089-164.447999 62.646857A257.584528 257.584528 0 0 0 8 [...]
+                    <a 
href="https://join.slack.com/t/apacheseatunnel/shared_invite/zt-123jmewxe-RjB_DW3M3gV~xL91pZ0oVQ";
 target="_blank" title="Slack" style="margin-left: 20px;"><svg 
t="1644553076784" class="icon" viewBox="0 0 1024 1024" version="1.1" 
xmlns="http://www.w3.org/2000/svg"; p-id="3088" width="36" height="36"><path 
d="M215.125333 647.04a107.861333 107.861333 0 0 1-107.52 107.648A107.861333 
107.861333 0 0 1 0 647.04a107.818667 107.818667 0 0 1 
107.605333-107.52h107.52v107.52z m [...]
+                    <a 
href="https://lists.apache.org/[email protected]"; 
target="_blank" title="Mailing list" style="margin-left: 20px;"><svg 
t="1644553175467" class="icon" viewBox="0 0 1024 1024" version="1.1" 
xmlns="http://www.w3.org/2000/svg"; p-id="5304" width="39" height="39"><path 
d="M853.333333 170.666667H170.666667c-46.933333 0-85.333333 38.4-85.333334 
85.333333v512c0 46.933333 38.4 85.333333 85.333334 
85.333333h682.666666c46.933333 0 85.333333-38.4 85.333334-85.3 [...]
+                    <a href="https://github.com/apache/incubator-seatunnel"; 
target="_blank" title="GitHub" style="margin-left: 20px;"><svg 
t="1644553223000" class="icon" viewBox="0 0 1024 1024" version="1.1" 
xmlns="http://www.w3.org/2000/svg"; p-id="6156" width="36" height="36"><path 
d="M512 12.64c-282.752 0-512 229.216-512 512 0 226.208 146.72 418.144 350.144 
485.824 25.6 4.736 35.008-11.104 35.008-24.64 
0-12.192-0.48-52.544-0.704-95.328-142.464 
30.976-172.512-60.416-172.512-60.416-23.29 [...]
                 </div>
             <div>`,
         },
diff --git a/src/pages/download/data.js b/src/pages/download/data.js
deleted file mode 100644
index fe1ed98..0000000
--- a/src/pages/download/data.js
+++ /dev/null
@@ -1,11 +0,0 @@
-const data = [
-       // {
-       //      "date": "2021-12-28",
-       //      "version": "v1.5.7",
-       //      "download": 
"https://github.com/apache/incubator-seatunnel/releases/download/v1.5.7/seatunnel-1.5.7.zip";,
-       //      "sourceCodeZip": 
"https://github.com/apache/incubator-seatunnel/archive/refs/tags/v1.5.7.zip";,
-       //      "sourceCodeGz": 
"https://github.com/apache/incubator-seatunnel/archive/refs/tags/v1.5.7.tar.gz";
-       // }
-]
-
-export default data
diff --git a/src/pages/download/index.jsx b/src/pages/download/index.jsx
deleted file mode 100644
index 6571831..0000000
--- a/src/pages/download/index.jsx
+++ /dev/null
@@ -1,53 +0,0 @@
-import React from 'react';
-import './index.less';
-import Layout from '@theme/Layout';
-import data from './data.js'
-
-export default function () {
-  return (
-    <Layout>
-      <div className="main">
-        <div>
-          <h1>Download the SeaTunnel(Incubating) releases</h1>
-          <p>Use the links below to download the Apache SeaTunnel(Incubating) 
from one of our mirrors.</p>
-          <p className="tip">Only source code releases are official Apache 
releases: Windows and Linux binary distributions are just for end user 
convenience.</p>
-          <h2>SeaTunnel</h2>
-          <table className="version-table">
-            <thead>
-              <tr>
-                <th>Date</th>
-                <th>Version</th>
-                <th>Download</th>
-                <th>Source Code(zip)</th>
-                <th>Source Code(tar.gz)</th>
-              </tr>
-            </thead>
-            <tbody>
-              {
-                data.map(item => {
-                  return (
-                    <tr key={item.version}>
-                      <td>{item.date}</td>
-                      <td>{item.version}</td>
-                      <td>
-                        <a 
href={item.download}>Incubator-SeaTunnel-{item.version}.zip</a>
-                      </td>
-                      <td>
-                        <a 
href={item.sourceCodeZip}>Incubator-SeaTunnel-{item.version}.zip</a>
-                      </td>
-                      <td>
-                        <a 
href={item.sourceCodeGz}>Incubator-SeaTunnel-{item.version}.tar.gz</a>
-                      </td>
-                    </tr>
-                  )
-                })
-              }
-            </tbody>
-          </table>
-          <h2>Historical versions of non-Apache</h2>
-          <a 
href="https://github.com/apache/incubator-seatunnel/releases";>Historical 
versions</a>
-        </div>
-      </div>
-    </Layout>
-  );
-}
diff --git a/src/pages/download/index.less b/src/pages/download/index.less
deleted file mode 100644
index 35418d1..0000000
--- a/src/pages/download/index.less
+++ /dev/null
@@ -1,14 +0,0 @@
-.main {
-  margin: 30px 0;
-  display: flex;
-  justify-content: center;
-
-  .tip {
-    font-weight: 700;
-    font-size: 16px;
-  }
-
-  .version-table {
-    width: 100%;
-  }
-}
diff --git a/src/pages/home/index.jsx b/src/pages/home/index.jsx
index 09c5d67..f57b033 100644
--- a/src/pages/home/index.jsx
+++ b/src/pages/home/index.jsx
@@ -36,6 +36,13 @@ export default function () {
                                 <img className="button_icon github1" 
src={useBaseUrl('/home/icons/github' + flag + '.svg')} alt="github"/>
                                 <span>GitHub</span>
                             </a>
+                            <a 
href="https://join.slack.com/t/apacheseatunnel/shared_invite/zt-123jmewxe-RjB_DW3M3gV~xL91pZ0oVQ";
+                               target="_blank"
+                               className="corner_button blue"
+                            >
+                                <img className="button_icon" 
src={useBaseUrl('/home/icons/slack.svg')} alt="slack"/>
+                                <span>Slack</span>
+                            </a>
                         </div>
 
                         <div>
diff --git a/static/home/icons/slack.svg b/static/home/icons/slack.svg
new file mode 100644
index 0000000..9865de6
--- /dev/null
+++ b/static/home/icons/slack.svg
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="127px" height="127px" viewBox="0 0 127 127" version="1.1" 
xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";>
+    <title>Slack_icon_2019 (1)</title>
+    <g id="页面-1" stroke="none" stroke-width="1" fill="none" 
fill-rule="evenodd">
+        <g id="Slack_icon_2019-(1)" transform="translate(0.700000, 0.600000)" 
fill-rule="nonzero">
+            <path d="M26.5,79.4 C26.5,86.7 20.6,92.6 13.3,92.6 C6,92.6 
0.1,86.7 0.1,79.4 C0.1,72.1 6,66.2 13.3,66.2 L26.5,66.2 L26.5,79.4 Z M33.1,79.4 
C33.1,72.1 39,66.2 46.3,66.2 C53.6,66.2 59.5,72.1 59.5,79.4 L59.5,112.4 
C59.5,119.7 53.6,125.6 46.3,125.6 C39,125.6 33.1,119.7 33.1,112.4 L33.1,79.4 Z" 
id="形状" fill="#E01E5A"></path>
+            <path d="M46.3,26.4 C39,26.4 33.1,20.5 33.1,13.2 C33.1,5.9 39,0 
46.3,0 C53.6,0 59.5,5.9 59.5,13.2 L59.5,26.4 L46.3,26.4 Z M46.3,33.1 C53.6,33.1 
59.5,39 59.5,46.3 C59.5,53.6 53.6,59.5 46.3,59.5 L13.2,59.5 C5.9,59.5 
-3.55271368e-15,53.6 -3.55271368e-15,46.3 C-3.55271368e-15,39 5.9,33.1 
13.2,33.1 L46.3,33.1 Z" id="形状" fill="#36C5F0"></path>
+            <path d="M99.2,46.3 C99.2,39 105.1,33.1 112.4,33.1 C119.7,33.1 
125.6,39 125.6,46.3 C125.6,53.6 119.7,59.5 112.4,59.5 L99.2,59.5 L99.2,46.3 Z 
M92.6,46.3 C92.6,53.6 86.7,59.5 79.4,59.5 C72.1,59.5 66.2,53.6 66.2,46.3 
L66.2,13.2 C66.2,5.9 72.1,0 79.4,0 C86.7,0 92.6,5.9 92.6,13.2 L92.6,46.3 
L92.6,46.3 Z" id="形状" fill="#2EB67D"></path>
+            <path d="M79.4,99.2 C86.7,99.2 92.6,105.1 92.6,112.4 C92.6,119.7 
86.7,125.6 79.4,125.6 C72.1,125.6 66.2,119.7 66.2,112.4 L66.2,99.2 L79.4,99.2 Z 
M79.4,92.6 C72.1,92.6 66.2,86.7 66.2,79.4 C66.2,72.1 72.1,66.2 79.4,66.2 
L112.5,66.2 C119.8,66.2 125.7,72.1 125.7,79.4 C125.7,86.7 119.8,92.6 112.5,92.6 
L79.4,92.6 Z" id="形状" fill="#ECB22E"></path>
+        </g>
+    </g>
+</svg>
\ No newline at end of file
diff --git a/tools/build-docs.sh b/tools/build-docs.sh
index b0dde75..e7a2228 100644
--- a/tools/build-docs.sh
+++ b/tools/build-docs.sh
@@ -9,7 +9,8 @@ WEBSITE_REPO_NAME="incubator-seatunnel-website"
 WEBSITE_NAME="website"
 MAIN_NAME="seatunnel"
 
-WORK_PATH=~/work/${WEBSITE_REPO_NAME}
+#WORK_PATH=~/work/${WEBSITE_REPO_NAME}
+WORK_PATH=~/xxxx/${WEBSITE_REPO_NAME}
 
 MAIN_PATH=${WORK_PATH}/${MAIN_NAME}
 WEBSITE_PATH=${WORK_PATH}/${WEBSITE_NAME}
@@ -52,9 +53,9 @@ function replaceImagesPath(){
       if [ "${filePath##*.}"x = "md"x ]; then
         echo "===>>: Replace images path to /doc/image_en in ${filePath}"
         if [[ "$OSTYPE" == "darwin"* ]]; then
-          sed -r -i '' "s/(\.\.\/)+images/\/doc\/image_en/g" ${filePath}
+          sed -r -i '' "s/(\.\.\/)*images/\/doc\/image_en/g" ${filePath}
         else
-          sed -r -i "s/(\.\.\/)+images/\/doc\/image_en/g" ${filePath}
+          sed -r -i "s/(\.\.\/)*images/\/doc\/image_en/g" ${filePath}
         fi
       fi
     else

Reply via email to