You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by nc...@apache.org on 2023/05/16 18:02:23 UTC

[incubator-sdap-website] branch asf-site updated: Improved release page build method (#9)

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

nchung pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new a43cb64  Improved release page build method (#9)
a43cb64 is described below

commit a43cb6477211b57dca02692190ec6d9b8d318c09
Author: Riley Kuttruff <72...@users.noreply.github.com>
AuthorDate: Tue May 16 11:02:17 2023 -0700

    Improved release page build method (#9)
    
    * Ignore Jekyll cache
    
    * Improvements to downloads page
    
    - Allow for specifications of releases/components in yaml file
    - Pinned table of latest component versions to top of page
    - Added table for release history
    
    This allows us to avoid rereleasing a component if it isn't edited between releases and maintain a coherent release page.
    
    * Removed component version from release page
    
    * Corrected .asc and .sha512 URLs on the downloads page
    
    * Updated releases.yml to show (probable) 1.1 release info
    
    * Site build
    
    * Site build
    
    ---------
    
    Co-authored-by: rileykk <ri...@jpl.nasa.gov>
---
 .gitignore                |   1 +
 downloads.html            | 167 +++++++++++++++++++++++++++++++++++++++-------
 source/_data/releases.yml |  35 ++++++++++
 source/build.sh           |   3 +
 source/downloads.html     |  67 +++++++++++++++++--
 5 files changed, 246 insertions(+), 27 deletions(-)

diff --git a/.gitignore b/.gitignore
index c19e0a3..9f7fe70 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 source/_site/
+source/.jekyll-cache/
\ No newline at end of file
diff --git a/downloads.html b/downloads.html
index 87ac88f..0b97ece 100644
--- a/downloads.html
+++ b/downloads.html
@@ -59,64 +59,185 @@
 <p>The table below contains links to download the Apache SDAP (incubating) module source distributions as well as their signature and checksum files from ASF mirrors.</p>
 
 <h2>SDAP</h2>
-
+<h3>Latest Components</h3>
 <table class="version-table">
     <thead>
     <tr>
-        <th>Date</th>
-        <th>Version</th>
-        <th>Module</th>
+        <th>Component</th>
+        <th>Release Version</th>
+        <th>Release Date</th>
         <th>Source Distribution</th>
     </tr>
     </thead>
     <tbody>
+    
+    
     <tr>
-        <td rowspan="3">2023-01-18</td>
-        <td rowspan="3">v1.0.0</td>
-        <td>Ingester</td>
+        <td>Nexus</td>
+        <td>1.1.0</td>
+        <td>2023-05-16</td>
         <td>
-            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/1.0.0-incubating/apache-sdap-ingester-1.0.0-incubating-src.tar.gz">
-                [source] apache-sdap-ingester-1.0.0-incubating-src.tar.gz
+            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/1.1.0-incubating/apache-sdap-nexus-1.1.0-incubating-src.tar.gz">
+                [source] apache-sdap-nexus-1.1.0-incubating-src.tar.gz
             </a>
-            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/1.0.0-incubating/apache-sdap-ingester-1.0.0-incubating-src.tar.gz.asc">
-                [signature] apache-sdap-ingester-1.0.0-incubating-src.tar.gz
+            <a href="https://downloads.apache.org/incubator/sdap/1.1.0-incubating/apache-sdap-nexus-1.1.0-incubating-src.tar.gz.asc">
+                [signature] apache-sdap-nexus-1.1.0-incubating-src.tar.gz
             </a>
-            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/1.0.0-incubating/apache-sdap-ingester-1.0.0-incubating-src.tar.gz.sha512">
-                [checksum] apache-sdap-ingester-1.0.0-incubating-src.tar.gz
+            <a href="https://downloads.apache.org/incubator/sdap/1.1.0-incubating/apache-sdap-nexus-1.1.0-incubating-src.tar.gz.sha512">
+                [checksum] apache-sdap-nexus-1.1.0-incubating-src.tar.gz
             </a>
         </td>
     </tr>
+    
     <tr>
-        <td>Nexus</td>
+        <td>Ingester</td>
+        <td>1.1.0</td>
+        <td>2023-05-16</td>
         <td>
-            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/1.0.0-incubating/apache-sdap-nexus-1.0.0-incubating-src.tar.gz">
-                [source] apache-sdap-nexus-1.0.0-incubating-src.tar.gz
+            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/1.1.0-incubating/apache-sdap-ingester-1.1.0-incubating-src.tar.gz">
+                [source] apache-sdap-ingester-1.1.0-incubating-src.tar.gz
             </a>
-            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/1.0.0-incubating/apache-sdap-nexus-1.0.0-incubating-src.tar.gz.asc">
-                [signature] apache-sdap-nexus-1.0.0-incubating-src.tar.gz
+            <a href="https://downloads.apache.org/incubator/sdap/1.1.0-incubating/apache-sdap-ingester-1.1.0-incubating-src.tar.gz.asc">
+                [signature] apache-sdap-ingester-1.1.0-incubating-src.tar.gz
             </a>
-            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/1.0.0-incubating/apache-sdap-nexus-1.0.0-incubating-src.tar.gz.sha512">
-                [checksum] apache-sdap-nexus-1.0.0-incubating-src.tar.gz
+            <a href="https://downloads.apache.org/incubator/sdap/1.1.0-incubating/apache-sdap-ingester-1.1.0-incubating-src.tar.gz.sha512">
+                [checksum] apache-sdap-ingester-1.1.0-incubating-src.tar.gz
             </a>
         </td>
     </tr>
+    
     <tr>
-        <td>Nexus Proto</td>
+        <td>Nexus Protobuf</td>
+        <td>1.0.0</td>
+        <td>2023-01-18</td>
         <td>
             <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/1.0.0-incubating/apache-sdap-nexusproto-1.0.0-incubating-src.tar.gz">
                 [source] apache-sdap-nexusproto-1.0.0-incubating-src.tar.gz
             </a>
-            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/1.0.0-incubating/apache-sdap-nexusproto-1.0.0-incubating-src.tar.gz.asc">
+            <a href="https://downloads.apache.org/incubator/sdap/1.0.0-incubating/apache-sdap-nexusproto-1.0.0-incubating-src.tar.gz.asc">
                 [signature] apache-sdap-nexusproto-1.0.0-incubating-src.tar.gz
             </a>
-            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/1.0.0-incubating/apache-sdap-nexusproto-1.0.0-incubating-src.tar.gz.sha512">
+            <a href="https://downloads.apache.org/incubator/sdap/1.0.0-incubating/apache-sdap-nexusproto-1.0.0-incubating-src.tar.gz.sha512">
                 [checksum] apache-sdap-nexusproto-1.0.0-incubating-src.tar.gz
             </a>
         </td>
     </tr>
+    
+    </tbody>
+</table>
+
+<h3>Release History</h3>
+<table class="version-table">
+    <thead>
+    <tr>
+        <th>Release Version</th>
+        <th>Release Date</th>
+        <th>Component</th>
+        <th>Source Distribution</th>
+    </tr>
+    </thead>
+    <tbody>
+    
+    
+    
+    
+    <tr>
+        
+        <td rowspan="2">1.1.0</td>
+        <td rowspan="2">2023-05-16</td>
+        
+        
+        <td>Nexus</td>
+        <td>
+            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/-incubating/apache-sdap-nexus--incubating-src.tar.gz">
+                [source] apache-sdap-nexus--incubating-src.tar.gz
+            </a>
+            <a href="https://downloads.apache.org/incubator/sdap/-incubating/apache-sdap-nexus--incubating-src.tar.gz.asc">
+                [signature] apache-sdap-nexus--incubating-src.tar.gz
+            </a>
+            <a href="https://downloads.apache.org/incubator/sdap/-incubating/apache-sdap-nexus--incubating-src.tar.gz.sha512">
+                [checksum] apache-sdap-nexus--incubating-src.tar.gz
+            </a>
+        </td>
+    </tr>
+    
+    <tr>
+        
+        <td>Ingester</td>
+        <td>
+            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/-incubating/apache-sdap-ingester--incubating-src.tar.gz">
+                [source] apache-sdap-ingester--incubating-src.tar.gz
+            </a>
+            <a href="https://downloads.apache.org/incubator/sdap/-incubating/apache-sdap-ingester--incubating-src.tar.gz.asc">
+                [signature] apache-sdap-ingester--incubating-src.tar.gz
+            </a>
+            <a href="https://downloads.apache.org/incubator/sdap/-incubating/apache-sdap-ingester--incubating-src.tar.gz.sha512">
+                [checksum] apache-sdap-ingester--incubating-src.tar.gz
+            </a>
+        </td>
+    </tr>
+    
+    
+    
+    
+    <tr>
+        
+        <td rowspan="3">1.0.0</td>
+        <td rowspan="3">2023-01-18</td>
+        
+        
+        <td>Nexus</td>
+        <td>
+            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/-incubating/apache-sdap-nexus--incubating-src.tar.gz">
+                [source] apache-sdap-nexus--incubating-src.tar.gz
+            </a>
+            <a href="https://downloads.apache.org/incubator/sdap/-incubating/apache-sdap-nexus--incubating-src.tar.gz.asc">
+                [signature] apache-sdap-nexus--incubating-src.tar.gz
+            </a>
+            <a href="https://downloads.apache.org/incubator/sdap/-incubating/apache-sdap-nexus--incubating-src.tar.gz.sha512">
+                [checksum] apache-sdap-nexus--incubating-src.tar.gz
+            </a>
+        </td>
+    </tr>
+    
+    <tr>
+        
+        <td>Ingester</td>
+        <td>
+            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/-incubating/apache-sdap-ingester--incubating-src.tar.gz">
+                [source] apache-sdap-ingester--incubating-src.tar.gz
+            </a>
+            <a href="https://downloads.apache.org/incubator/sdap/-incubating/apache-sdap-ingester--incubating-src.tar.gz.asc">
+                [signature] apache-sdap-ingester--incubating-src.tar.gz
+            </a>
+            <a href="https://downloads.apache.org/incubator/sdap/-incubating/apache-sdap-ingester--incubating-src.tar.gz.sha512">
+                [checksum] apache-sdap-ingester--incubating-src.tar.gz
+            </a>
+        </td>
+    </tr>
+    
+    <tr>
+        
+        <td>Nexus Protobuf</td>
+        <td>
+            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/-incubating/apache-sdap-nexusproto--incubating-src.tar.gz">
+                [source] apache-sdap-nexusproto--incubating-src.tar.gz
+            </a>
+            <a href="https://downloads.apache.org/incubator/sdap/-incubating/apache-sdap-nexusproto--incubating-src.tar.gz.asc">
+                [signature] apache-sdap-nexusproto--incubating-src.tar.gz
+            </a>
+            <a href="https://downloads.apache.org/incubator/sdap/-incubating/apache-sdap-nexusproto--incubating-src.tar.gz.sha512">
+                [checksum] apache-sdap-nexusproto--incubating-src.tar.gz
+            </a>
+        </td>
+    </tr>
+    
+    
     </tbody>
 </table>
 
+
+
 <h2>Instructions</h2>
 
 <p>To download, build and deploy Apache SDAP (incubating):</p>
diff --git a/source/_data/releases.yml b/source/_data/releases.yml
new file mode 100644
index 0000000..72e67f2
--- /dev/null
+++ b/source/_data/releases.yml
@@ -0,0 +1,35 @@
+releases:
+  latest:
+  - component: nexus
+    displayName: Nexus
+    release: 1.1.0
+    releaseDate: 2023-05-16
+  - component: ingester
+    displayName: Ingester
+    release: 1.1.0
+    releaseDate: 2023-05-16
+  - component: nexusproto
+    displayName: Nexus Protobuf
+    release: 1.0.0
+    releaseDate: 2023-01-18
+#  - component: insitu
+#    displayName: In-Situ Data Services
+#    release: 1.1.0
+#    releaseDate: TBD
+  history:
+  - release: 1.1.0
+    releaseDate: 2023-05-16
+    components:
+    - component: nexus
+      displayName: Nexus
+    - component: ingester
+      displayName: Ingester
+  - release: 1.0.0
+    releaseDate: 2023-01-18
+    components:
+    - component: nexus
+      displayName: Nexus
+    - component: ingester
+      displayName: Ingester
+    - component: nexusproto
+      displayName: Nexus Protobuf
diff --git a/source/build.sh b/source/build.sh
new file mode 100755
index 0000000..7a858b4
--- /dev/null
+++ b/source/build.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+cp -r _site/* ../
diff --git a/source/downloads.html b/source/downloads.html
index 3fd78c0..da3b249 100644
--- a/source/downloads.html
+++ b/source/downloads.html
@@ -8,21 +8,80 @@
 <p>The table below contains links to download the Apache SDAP (incubating) module source distributions as well as their signature and checksum files from ASF mirrors.</p>
 
 <h2>SDAP</h2>
+<h3>Latest Components</h3>
+<table class="version-table">
+    <thead>
+    <tr>
+        <th>Component</th>
+        <th>Release Version</th>
+        <th>Release Date</th>
+        <th>Source Distribution</th>
+    </tr>
+    </thead>
+    <tbody>
+    {% assign latest = site.data.releases.releases.latest %}
+    {% for component in latest %}
+    <tr>
+        <td>{{ component.displayName }}</td>
+        <td>{{ component.release }}</td>
+        <td>{{ component.releaseDate }}</td>
+        <td>
+            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/{{ component.release }}-incubating/apache-sdap-{{ component.component }}-{{ component.release }}-incubating-src.tar.gz">
+                [source] apache-sdap-{{ component.component }}-{{ component.release }}-incubating-src.tar.gz
+            </a>
+            <a href="https://downloads.apache.org/incubator/sdap/{{ component.release }}-incubating/apache-sdap-{{ component.component }}-{{ component.release }}-incubating-src.tar.gz.asc">
+                [signature] apache-sdap-{{ component.component }}-{{ component.release }}-incubating-src.tar.gz
+            </a>
+            <a href="https://downloads.apache.org/incubator/sdap/{{ component.release }}-incubating/apache-sdap-{{ component.component }}-{{ component.release }}-incubating-src.tar.gz.sha512">
+                [checksum] apache-sdap-{{ component.component }}-{{ component.release }}-incubating-src.tar.gz
+            </a>
+        </td>
+    </tr>
+    {% endfor %}
+    </tbody>
+</table>
 
+<h3>Release History</h3>
 <table class="version-table">
     <thead>
     <tr>
-        <th>Date</th>
-        <th>Version</th>
-        <th>Module</th>
+        <th>Release Version</th>
+        <th>Release Date</th>
+        <th>Component</th>
         <th>Source Distribution</th>
     </tr>
     </thead>
     <tbody>
-    {% include release.html date="2023-01-18" version="1.0.0" %}
+    {% assign history = site.data.releases.releases.history %}
+    {% for release in history %}
+    {% assign first = true %}
+    {% for component in release.components %}
+    <tr>
+        {% if first %}
+        <td rowspan="{{ release.components.size }}">{{ release.release }}</td>
+        <td rowspan="{{ release.components.size }}">{{ release.releaseDate }}</td>
+        {% assign first = false %}
+        {% endif %}
+        <td>{{ component.displayName }}</td>
+        <td>
+            <a href="https://www.apache.org/dyn/closer.lua/incubator/sdap/{{ component.release }}-incubating/apache-sdap-{{ component.component }}-{{ component.release }}-incubating-src.tar.gz">
+                [source] apache-sdap-{{ component.component }}-{{ component.release }}-incubating-src.tar.gz
+            </a>
+            <a href="https://downloads.apache.org/incubator/sdap/{{ component.release }}-incubating/apache-sdap-{{ component.component }}-{{ component.release }}-incubating-src.tar.gz.asc">
+                [signature] apache-sdap-{{ component.component }}-{{ component.release }}-incubating-src.tar.gz
+            </a>
+            <a href="https://downloads.apache.org/incubator/sdap/{{ component.release }}-incubating/apache-sdap-{{ component.component }}-{{ component.release }}-incubating-src.tar.gz.sha512">
+                [checksum] apache-sdap-{{ component.component }}-{{ component.release }}-incubating-src.tar.gz
+            </a>
+        </td>
+    </tr>
+    {% endfor %}
+    {% endfor %}
     </tbody>
 </table>
 
+
+
 <h2>Instructions</h2>
 
 <p>To download, build and deploy Apache SDAP (incubating):</p>