You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wayang.apache.org by be...@apache.org on 2021/02/22 05:25:46 UTC

[incubator-wayang-website] 07/37: update the github action to change the url's

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

bertty pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-wayang-website.git

commit 71b7b5059b877741dcb00d07a0a268ee53d316e5
Author: Bertty Contreras-Rojas <be...@scalytics.io>
AuthorDate: Sun Feb 14 12:10:00 2021 -0300

    update the github action to change the url's
---
 .github/workflows/html_publication.yml    | 11 +++++++++++
 _drafts/publication.md                    |  4 ++--
 _includes/footer.html                     |  2 +-
 _includes/head.html                       |  6 +++---
 _layouts/about.html                       |  4 ++--
 _layouts/publications.html                |  6 +++---
 _publications/2015-05-31-sigmod.md        |  4 ++--
 _publications/2015-08-31-vldb.md          |  4 ++--
 _publications/2016-03-15-edbt.md          |  4 ++--
 _publications/2016-06-26-sigmod.md        |  4 ++--
 _publications/2016-09-05-vldb.md          |  4 ++--
 _publications/2017-05-14-sigmod.md        |  4 ++--
 _publications/2017-06-12-spark_summit.md  |  2 +-
 _publications/2018-04-16-icde-demo.md     |  4 ++--
 _publications/2018-04-16-icde-tutorial.md |  4 ++--
 _publications/2018-08-27-vldb.md          |  4 ++--
 about.md                                  |  4 ++--
 assets/css/home.css                       |  6 +++---
 18 files changed, 46 insertions(+), 35 deletions(-)

diff --git a/.github/workflows/html_publication.yml b/.github/workflows/html_publication.yml
index a2db359..0df24fd 100644
--- a/.github/workflows/html_publication.yml
+++ b/.github/workflows/html_publication.yml
@@ -8,6 +8,17 @@ jobs:
     runs-on: ubuntu-16.04
     steps:
       - uses: actions/checkout@v2
+      - env:
+          URL: ${{ secrets.URL }}
+          BASE_URL: ${{ secrets.BASE_URL }}
+      - run : |
+          URL="${URL:='https://wayang.apache.org'}"  # If variable not set or null, set it to default.
+          BASE_URL="${BASE_URL:='/'}"  # If variable not set or null, set it to default.
+          echo "url: \"${URL}\"" > _config.yml.tmp
+          echo "baseurl: \"${BASE_URL}\"" > _config.yml.tmp
+          cat _config.yml | grep -v "url:" >> _config.yml.tmp
+          mv _config.yml.tmp _config.yml
+
 
       # Use GitHub Actions' cache to shorten build times and decrease load on servers
       - uses: actions/cache@v2
diff --git a/_drafts/publication.md b/_drafts/publication.md
index e81f664..2046f19 100644
--- a/_drafts/publication.md
+++ b/_drafts/publication.md
@@ -4,10 +4,10 @@ title: Publication
 subtitle: >
    NAME_OF_PAPER
 link-name: Paper|Tutorial|Demo|Talk|Vision Paper| at CONFERENCE YEAR
-img-thumb: /assets/img/screenshot/NAME_OF_SCREENSHOT.png
+img-thumb: assets/img/screenshot/NAME_OF_SCREENSHOT.png
 authors: AUTHOR_1, AUTHOR_N
 year: 20XX
-link-paper: /assets/pdf/paper/NAME_OF_DOCUMENT.pdf
+link-paper: assets/pdf/paper/NAME_OF_DOCUMENT.pdf
 link-external: false|true #Depends if the document is on the repository or not
 ---
 
diff --git a/_includes/footer.html b/_includes/footer.html
index 543080a..863eab2 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -2,7 +2,7 @@
     <div class="row justify-content-center">
         <div class="col-10 text-center">
             <a href="http://incubator.apache.org/">
-                <img src="{{ "/assets/img/egg-logo.png" | relative_url }}">
+                <img src="{{ site.url }}{{ site.baseurl }}{{ "assets/img/egg-logo.png" | relative_url }}">
             </a>
             <br />
             <p style="text-align: justify">
diff --git a/_includes/head.html b/_includes/head.html
index 02a9b25..4f7970d 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -6,9 +6,9 @@
     <title>Apache Wayang - {{page.title}}</title>
     <!-- Bootstrap CSS -->
     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
-    <link rel="stylesheet" href="{{ "/assets/css/color.css" | relative_url }}">
-    <link rel="stylesheet" href="{{ "/assets/fa/css/all.min.css" | relative_url }}">
+    <link rel="stylesheet" href="{{ site.url }}{{ site.baseurl }}{{ "assets/css/color.css" | relative_url }}">
+    <link rel="stylesheet" href="{{ site.url }}{{ site.baseurl }}{{ "assets/fa/css/all.min.css" | relative_url }}">
 
 
-    <link rel="stylesheet" href="{{ "/assets/css/home.css" | relative_url }}">
+    <link rel="stylesheet" href="{{ site.url }}{{ site.baseurl }}{{ "assets/css/home.css" | relative_url }}">
 </head>
\ No newline at end of file
diff --git a/_layouts/about.html b/_layouts/about.html
index 6f37ff2..2b1c5e4 100644
--- a/_layouts/about.html
+++ b/_layouts/about.html
@@ -19,12 +19,12 @@ layout: post
     <div class="container">
         <div class="row">
             <div class="col-md-6 col-sm-12 text-center ">
-                <img src="{{ page.img-architecture.path | relative_url }}" style="width: 100%;"/>
+                <img src="{{ site.url }}{{ site.baseurl }}{{ page.img-architecture.path | relative_url }}" style="width: 100%;"/>
                 <br>
                 <em>{{page.img-architecture.title}}</em>
             </div>
             <div class="col-md-6 col-sm-12 text-center ">
-                <img src="{{ page.img-plan.path | relative_url }}" style="width: 100%;"/>
+                <img src="{{ site.url }}{{ site.baseurl }}{{ page.img-plan.path | relative_url }}" style="width: 100%;"/>
                 <br>
                 <em>{{page.img-plan.title}}</em>
             </div>
diff --git a/_layouts/publications.html b/_layouts/publications.html
index bf1029b..6dd06f6 100644
--- a/_layouts/publications.html
+++ b/_layouts/publications.html
@@ -10,14 +10,14 @@ layout: post
                 <div class="col-md-6">
                     <article class="blog-post text-center">
                         <a class="post-title " href="{{pub.url}}">
-                            <img src="{{ pub.img-thumb | relative_url }}" class="w-100" alt="post-thumb">
+                            <img src="{{ site.url }}{{ site.baseurl }}{{ pub.img-thumb | relative_url }}" class="w-100" alt="post-thumb">
                         </a>
                         {% if pub.link-external == false %}
-                            <a href="{{ pub.link-paper | relative_url }}" class="btn btn-link">
+                            <a href="{{ site.url }}{{ site.baseurl }}{{ pub.link-paper | relative_url }}" class="btn btn-link">
                                 <i class="far fa-file-pdf"></i> {{pub.link-name}} (Download)
                             </a>
                         {% else %}
-                            <a href="{{ pub.link-paper}}" class="btn btn-link">
+                            <a href="{{ site.url }}{{ site.baseurl }}{{ pub.link-paper}}" class="btn btn-link">
                                 <i class="fas fa-external-link-alt"></i>{{pub.link-name}} (External Link)
                             </a>
                         {% endif %}
diff --git a/_publications/2015-05-31-sigmod.md b/_publications/2015-05-31-sigmod.md
index 7b888f2..a289979 100644
--- a/_publications/2015-05-31-sigmod.md
+++ b/_publications/2015-05-31-sigmod.md
@@ -4,10 +4,10 @@ title: Publication
 subtitle: >
    BigDansing: A System for Big Data Cleansing
 link-name: Paper at SIGMOD 2015
-img-thumb: /assets/img/screenshot/bigdansing.png
+img-thumb: assets/img/screenshot/bigdansing.png
 authors: Zuhair Khayyat, Ihab F. Ilyas, Alekh Jindal, Samuel Madden, Mourad Ouzzani, Paolo Papotti, Jorge-Arnulfo Quiané-Ruiz, Nan Tang and Si Yin
 year: 2015
-link-paper: /assets/pdf/paper/bigdansing.pdf
+link-paper: assets/pdf/paper/bigdansing.pdf
 link-external: false
 ---
 
diff --git a/_publications/2015-08-31-vldb.md b/_publications/2015-08-31-vldb.md
index 6f07de9..87a73f0 100644
--- a/_publications/2015-08-31-vldb.md
+++ b/_publications/2015-08-31-vldb.md
@@ -4,10 +4,10 @@ title: Publication
 subtitle: >
    Lightning Fast and Space Efficient Inequality Joins
 link-name: Paper at PVLDB 8(13) 2015
-img-thumb: /assets/img/screenshot/iejoin.png
+img-thumb: assets/img/screenshot/iejoin.png
 authors: Zuhair Khayyat, William Lucia, Meghna Singh, Mourad Ouzzani, Paolo Papotti, Jorge-Arnulfo Quiané-Ruiz, Nan Tang and Panos Kalnis
 year: 20XX
-link-paper: /assets/pdf/paper/iejoin.pdf
+link-paper: assets/pdf/paper/iejoin.pdf
 link-external: false
 ---
 
diff --git a/_publications/2016-03-15-edbt.md b/_publications/2016-03-15-edbt.md
index 56fa481..2439042 100644
--- a/_publications/2016-03-15-edbt.md
+++ b/_publications/2016-03-15-edbt.md
@@ -4,10 +4,10 @@ title: Publication
 subtitle: >
    Road to Freedom in Data Analytics
 link-name: Vision Paper at EDBT 2016
-img-thumb: /assets/img/screenshot/vision.png
+img-thumb: assets/img/screenshot/vision.png
 authors: Divy Agrawal, Sanjay Chawla, Ahmed Elmagarmid, Zoi Kaoudi, Mourad Ouzzani, Paolo Papotti, Jorge-Arnulfo Quiané-Ruiz, Nan Tang and Mohammed J. Zaki
 year: 2016
-link-paper: /assets/pdf/paper/vision.pdf
+link-paper: assets/pdf/paper/vision.pdf
 link-external: false
 ---
 The world is fast moving towards a data-driven society where data is the most valuable asset. Organizations need to perform very diverse analytic tasks using various data processing platforms. In doing so, they face many challenges; chiefly, platform dependence, poor interoperability, and poor performance when using multiple platforms. We present RHEEM, our vision for big data analytics over diverse data processing platforms. RHEEM provides a threelayer data processing and storage abstra [...]
diff --git a/_publications/2016-06-26-sigmod.md b/_publications/2016-06-26-sigmod.md
index 206eb56..8ddcbf6 100644
--- a/_publications/2016-06-26-sigmod.md
+++ b/_publications/2016-06-26-sigmod.md
@@ -4,10 +4,10 @@ title: Publication
 subtitle: >
    Rheem: Enabling Multi-Platform Task Execution
 link-name: Demo at SIGMOD 2016
-img-thumb: /assets/img/screenshot/rheemdemo.png
+img-thumb: assets/img/screenshot/rheemdemo.png
 authors: Divy Agrawal, Lamine Ba, Laure Berti-Equille, Sanjay Chawla, Ahmed Elmagarmid, Hossam Hammady, Yasser Idris, Zoi Kaoudi, Zuhair Khayyat, Sebastian Kruse, Mourad Ouzzani, Paolo Papotti, Jorge-Arnulfo Quiané-Ruiz, Nan Tang and Mohammed J. Zaki
 year: 2016
-link-paper: /assets/pdf/paper/rheemdemo.pdf
+link-paper: assets/pdf/paper/rheemdemo.pdf
 link-external: false
 ---
 
diff --git a/_publications/2016-09-05-vldb.md b/_publications/2016-09-05-vldb.md
index 81d89bd..6ad286d 100644
--- a/_publications/2016-09-05-vldb.md
+++ b/_publications/2016-09-05-vldb.md
@@ -4,10 +4,10 @@ title: Publication
 subtitle: >
    Rheem
 link-name: Tutorial at BOSS 2016
-img-thumb: /assets/img/screenshot/rheemhandson.png
+img-thumb: assets/img/screenshot/rheemhandson.png
 authors: Zoi Kaoudi, Sebastian Kruse and Jorge-Arnulfo Quiané-Ruiz
 year: 2016
-link-paper: /assets/pdf/paper/rheemhandson.pdf
+link-paper: assets/pdf/paper/rheemhandson.pdf
 link-external: false
 ---
 
diff --git a/_publications/2017-05-14-sigmod.md b/_publications/2017-05-14-sigmod.md
index fad5562..01ab9d1 100644
--- a/_publications/2017-05-14-sigmod.md
+++ b/_publications/2017-05-14-sigmod.md
@@ -4,10 +4,10 @@ title: Publication
 subtitle: >
    A Cost-based Optimizer for Gradient Descent Optimization
 link-name: Paper at SIGMOD 2017
-img-thumb: /assets/img/screenshot/ml4all.png
+img-thumb: assets/img/screenshot/ml4all.png
 authors: Zoi Kaoudi, Jorge-Arnulfo Quiané-Ruiz, Saravanan Thirumuruganathan, Sanjay Chawla and Divy Agrawal
 year: 2017
-link-paper: /assets/pdf/paper/ml4all.pdf
+link-paper: assets/pdf/paper/ml4all.pdf
 link-external: false
 ---
 
diff --git a/_publications/2017-06-12-spark_summit.md b/_publications/2017-06-12-spark_summit.md
index 330588f..bb5b019 100644
--- a/_publications/2017-06-12-spark_summit.md
+++ b/_publications/2017-06-12-spark_summit.md
@@ -4,7 +4,7 @@ title: Publication
 subtitle: >
    Interoperating a Zoo of Data Processing Platforms Using Rheem
 link-name: Talk at Spark Summit 2017
-img-thumb: /assets/img/screenshot/sparksummit.png
+img-thumb: assets/img/screenshot/sparksummit.png
 authors: Yasser Idris and Sebastian Kruse
 year: 2017
 link-paper: https://databricks.com/session/interoperating-a-zoo-of-data-processing-platforms-using-rheem
diff --git a/_publications/2018-04-16-icde-demo.md b/_publications/2018-04-16-icde-demo.md
index 42d7352..33e074b 100644
--- a/_publications/2018-04-16-icde-demo.md
+++ b/_publications/2018-04-16-icde-demo.md
@@ -4,10 +4,10 @@ title: Publication
 subtitle: >
    RheemStudio: Cross-Platform Data Analytics Made Easy
 link-name: Demo at ICDE 2018
-img-thumb: /assets/img/screenshot/studiodemo.png
+img-thumb: assets/img/screenshot/studiodemo.png
 authors: Ji Lucas, Yasser Idris, Bertty Contreras-Rojas, Jorge-Arnulfo Quiané-Ruiz and Sanjay Chawla
 year: 2018
-link-paper: /assets/pdf/paper/studiodemo.pdf
+link-paper: assets/pdf/paper/studiodemo.pdf
 link-external: false
 ---
 
diff --git a/_publications/2018-04-16-icde-tutorial.md b/_publications/2018-04-16-icde-tutorial.md
index 384665e..c12ad5c 100644
--- a/_publications/2018-04-16-icde-tutorial.md
+++ b/_publications/2018-04-16-icde-tutorial.md
@@ -4,10 +4,10 @@ title: Publication
 subtitle: >
    Cross-Platform Data Processing: Use Cases and Challenges
 link-name: Tutorial at ICDE 2018
-img-thumb: /assets/img/screenshot/rheemtutorial.png
+img-thumb: assets/img/screenshot/rheemtutorial.png
 authors: Zoi Kaoudi and Jorge-Arnulfo Quiané-Ruiz
 year: 2018
-link-paper: /assets/pdf/paper/rheemtutorial.pdf
+link-paper: assets/pdf/paper/rheemtutorial.pdf
 link-external: false
 ---
 
diff --git a/_publications/2018-08-27-vldb.md b/_publications/2018-08-27-vldb.md
index b7bf5a3..b9da65e 100644
--- a/_publications/2018-08-27-vldb.md
+++ b/_publications/2018-08-27-vldb.md
@@ -4,10 +4,10 @@ title: Publication
 subtitle: >
    RHEEM: Enabling Cross-Platform Data Processing
 link-name: Paper at PVLDB 11(11) 2018
-img-thumb: /assets/img/screenshot/rheem.png
+img-thumb: assets/img/screenshot/rheem.png
 authors: Divy Agrawal, Sanjay Chawla, Zoi Kaoudi, Sebastian Kruse, Jorge-Arnulfo Quiané-Ruiz, Bertty Contreras-Rojas, Ahmed Elmagarmid, Yasser Idris, Ji Lucas, Essam Mansour, Mourad Ouzzani, Paolo Papotti, Nan Tang, Saravanan Thirumuruganathan and Anis Troudi
 year: 2018
-link-paper: /assets/pdf/paper/rheem.pdf
+link-paper: assets/pdf/paper/rheem.pdf
 link-external: false
 ---
 
diff --git a/about.md b/about.md
index da633da..57d78c3 100644
--- a/about.md
+++ b/about.md
@@ -2,10 +2,10 @@
 layout: about
 title: "About"
 img-architecture:
-   path: /assets/img/architecture.png
+   path: assets/img/architecture.png
    title: Architecture of Apache Wayang
 img-plan:
-   path: /assets/img/plan.png
+   path: assets/img/plan.png
    title: SGD plans
 features: 
   - feature:
diff --git a/assets/css/home.css b/assets/css/home.css
index c80be6a..0e87495 100644
--- a/assets/css/home.css
+++ b/assets/css/home.css
@@ -5,7 +5,7 @@
 {
     height: 100vh;
     width: 100vw;
-    background-image: url('{{ "/assets/img/keyword.png" | relative_url }}');
+    background-image: url('{{ site.url }}{{ site.baseurl }}{{ "assets/img/keyword.png" | relative_url }}');
     background-repeat: no-repeat;
 }
 
@@ -14,7 +14,7 @@
 {
     height: 10em;
     background-position: 50%;
-    background-image: url('{{ "/assets/img/keyword.png" | relative_url }}');
+    background-image: url('{{ site.url }}{{ site.baseurl }}{{ "assets/img/keyword.png" | relative_url }}');
     background-repeat: no-repeat;
 }
 
@@ -22,7 +22,7 @@
 {
     height: 5em;
     background-position: 50%;
-    background-image: url('{{ "/assets/img/keyword.png" | relative_url }}');
+    background-image: url('{{ site.url }}{{ site.baseurl }}{{ "assets/img/keyword.png" | relative_url }}');
     background-repeat: no-repeat;
 }