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

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


The following commit(s) were added to refs/heads/main by this push:
     new de3baa3  have the NMS AMQP downloads and release pages generated from 
the release collection
de3baa3 is described below

commit de3baa309df3f533baac81156553650acb05aaff
Author: Robbie Gemmell <[email protected]>
AuthorDate: Tue Sep 14 13:24:59 2021 +0100

    have the NMS AMQP downloads and release pages generated from the release 
collection
---
 _config.yml                                        |  7 +++
 src/_data/current_releases.yml                     |  2 +
 src/_includes/nms_amqp_download_links.md           | 16 +++++++
 src/_layouts/nms_amqp_release.md                   | 41 ++++++++++++++++++
 src/_nms_amqp_releases/apachenmsamqp-v180.md       | 50 ----------------------
 src/_nms_amqp_releases/apachenmsamqp-v181.md       | 31 --------------
 .../nms-amqp-01-08-00-release.md                   | 28 ++++++++++++
 .../nms-amqp-01-08-01-release.md                   | 10 +++++
 .../nms/providers/amqp/downloads/index.md          | 26 +++++++++--
 .../nms/providers/amqp/downloads/past_releases.md  | 37 ++++++++++++++++
 10 files changed, 163 insertions(+), 85 deletions(-)

diff --git a/_config.yml b/_config.yml
index fa032d8..a52de4d 100644
--- a/_config.yml
+++ b/_config.yml
@@ -61,6 +61,13 @@ defaults:
       type: activemq5
   - scope:
       path: ""
+      type: "nms_amqp_releases"
+    values:
+      layout: "nms_amqp_release"
+      title-class: page-title-nms
+      type: nms
+  - scope:
+      path: ""
       type: "news"
     values:
       layout: "news"
diff --git a/src/_data/current_releases.yml b/src/_data/current_releases.yml
index fa4c318..3a0814a 100644
--- a/src/_data/current_releases.yml
+++ b/src/_data/current_releases.yml
@@ -4,3 +4,5 @@ artemis:
 5x:
   - "5.16."
   - "5.15."
+nms_amqp:
+  - "1.8."
diff --git a/src/_includes/nms_amqp_download_links.md 
b/src/_includes/nms_amqp_download_links.md
new file mode 100644
index 0000000..b5518df
--- /dev/null
+++ b/src/_includes/nms_amqp_download_links.md
@@ -0,0 +1,16 @@
+{% assign is_current_release = false %}
+{% for current_release_prefix in site.data.current_releases["nms_amqp"] %}
+    {% if include.release.version contains current_release_prefix %}
+        {% assign is_current_release = true %}
+        {% break %}
+    {% endif %}
+{% endfor %}
+{% if is_current_release %}
+|Apache.NMS.AMQP Source 
code|[Apache.NMS.AMQP-{{include.release.version}}-src.zip](https://www.apache.org/dyn/closer.lua?filename=/activemq/apache-nms-amqp/{{include.release.version}}/Apache.NMS.AMQP-{{include.release.version}}-src.zip&action=download)|[SHA512](https://downloads.apache.org/activemq/apache-nms-amqp/{{include.release.version}}/Apache.NMS.AMQP-{{include.release.version}}-src.zip.sha512)|[PGP
 
Signature](https://downloads.apache.org/activemq/apache-nms-amqp/{{include.release.
 [...]
+|Apache.NMS.AMQP Binary 
Assemblies|[Apache.NMS.AMQP-{{include.release.version}}-bin.zip](https://www.apache.org/dyn/closer.lua?filename=/activemq/apache-nms-amqp/{{include.release.version}}/Apache.NMS.AMQP-{{include.release.version}}-bin.zip&action=download)|[SHA512](https://downloads.apache.org/activemq/apache-nms-amqp/{{include.release.version}}/Apache.NMS.AMQP-{{include.release.version}}-bin.zip.sha512)|[PGP
 Signature](https://downloads.apache.org/activemq/apache-nms-amqp/{{include.re 
[...]
+|Apache.NMS.AMQP Nuget 
Package|[Apache.NMS.AMQP.{{include.release.version}}.nupkg](https://www.apache.org/dyn/closer.lua?filename=/activemq/apache-nms-amqp/{{include.release.version}}/Apache.NMS.AMQP.{{include.release.version}}.nupkg&action=download)|[SHA512](https://downloads.apache.org/activemq/apache-nms-amqp/{{include.release.version}}/Apache.NMS.AMQP.{{include.release.version}}.nupkg.sha512)|[PGP
 
Signature](https://downloads.apache.org/activemq/apache-nms-amqp/{{include.release.vers
 [...]
+{% else %}
+|Apache.NMS.AMQP Source 
code|[Apache.NMS.AMQP-{{include.release.version}}-src.zip](https://archive.apache.org/dist//activemq/apache-nms-amqp/{{include.release.version}}/Apache.NMS.AMQP-{{include.release.version}}-src.zip&action=download)|[SHA512](https://archive.apache.org/dist/activemq/apache-nms-amqp/{{include.release.version}}/Apache.NMS.AMQP-{{include.release.version}}-src.zip.sha512)|[PGP
 
Signature](https://archive.apache.org/dist/activemq/apache-nms-amqp/{{include.release.version}}
 [...]
+|Apache.NMS.AMQP Binary 
Assemblies|[Apache.NMS.AMQP-{{include.release.version}}-bin.zip](https://archive.apache.org/dist//activemq/apache-nms-amqp/{{include.release.version}}/Apache.NMS.AMQP-{{include.release.version}}-bin.zip&action=download)|[SHA512](https://archive.apache.org/dist/activemq/apache-nms-amqp/{{include.release.version}}/Apache.NMS.AMQP-{{include.release.version}}-bin.zip.sha512)|[PGP
 
Signature](https://archive.apache.org/dist/activemq/apache-nms-amqp/{{include.release.ver
 [...]
+|Apache.NMS.AMQP Nuget 
Package|[Apache.NMS.AMQP.{{include.release.version}}.nupkg](https://archive.apache.org/dist//activemq/apache-nms-amqp/{{include.release.version}}/Apache.NMS.AMQP.{{include.release.version}}.nupkg&action=download)|[SHA512](https://archive.apache.org/dist/activemq/apache-nms-amqp/{{include.release.version}}/Apache.NMS.AMQP.{{include.release.version}}.nupkg.sha512)|[PGP
 
Signature](https://archive.apache.org/dist/activemq/apache-nms-amqp/{{include.release.version}}/Apa
 [...]
+{% endif %}
diff --git a/src/_layouts/nms_amqp_release.md b/src/_layouts/nms_amqp_release.md
new file mode 100644
index 0000000..ed75391
--- /dev/null
+++ b/src/_layouts/nms_amqp_release.md
@@ -0,0 +1,41 @@
+---
+layout: default_md
+---
+{% assign releases = site["nms_amqp_releases"] | reverse %}
+{% assign isCurrentRelease = false %}
+
+{% for current_release in site.data.current_releases["nms_amqp"] %}
+    {% for release in releases %}
+        {% if release.version contains current_release %}
+                    {% if release.version == page.version %}
+                        {% assign isCurrentRelease = true %}
+                    {% endif %}
+            {% break %}
+        {% endif %}
+    {% endfor %}
+    {% if isCurrentRelease %} {% break %} {% endif %}
+{% endfor %}
+
+{% unless isCurrentRelease %}
+<div class="alert alert-warning">
+  This is an older release. To get the current release, please see the <a 
href="{{site.baseurl}}/components/nms/providers/amqp/downloads" 
class="alert-link">download page</a>.
+</div>
+{% endunless %}
+
+{{content}}
+
+Download
+--------
+
+{% include nms_amqp_download_links.md release=page %}
+
+Change Log
+----------
+
+For a more detailed view of new features and bug fixes, see theĀ [release 
notes]({{page.release_notes}})
+
+Verify the Integrity of Downloads
+---------------------------------
+
+{% include verify_download.md %}
+
diff --git a/src/_nms_amqp_releases/apachenmsamqp-v180.md 
b/src/_nms_amqp_releases/apachenmsamqp-v180.md
deleted file mode 100644
index 043334b..0000000
--- a/src/_nms_amqp_releases/apachenmsamqp-v180.md
+++ /dev/null
@@ -1,50 +0,0 @@
----
-layout: default_md
-title: Apache.NMS.AMQP v1.8.0 
-title-class: page-title-nms
-type: nms
----
-
-New and Noteworthy
-------------------
-
-This is the first release of the Apache NMS AMQP client provider. 
-
-It is also the first provider impl which adds .net standard 2.0 support, as 
well provides nuget packages.
-
-This NMS provider can be used against both ActiveMQ 5.x as well as ActiveMQ 
Artemis and any other AMQP 1.0 compliant broker.
-
-API Documentation
------------------
-
-Refer to the API [here](../../../nms-api)
-
-|Description|Download Link|PGP Signature File|Version|
-|---|---|---|---|
-|Apache.NMS Documentation 
|[Apache.NMS-1.8.0-docs.zip](http://www.apache.org/dyn/closer.lua/activemq/apache-nms-api/1.8.0/Apache.NMS-1.8.0-docs.zip)|[Apache.NMS-1.8.0-docs.zip.asc](http://www.apache.org/dist/activemq/apache-nms-api/1.8.0/Apache.NMS-1.8.0-docs.zip.asc)|1.8.0|
-
-
-Download Here
--------------
-
-|Description|Download Link|PGP Signature File|Version|
-|---|---|---|---|
-|Apache.NMS.AMQP Source 
code|[Apache.NMS.AMQP-1.8.0-src.zip](http://www.apache.org/dyn/closer.lua/activemq/apache-nms-amqp/1.8.0/Apache.NMS.AMQP-1.8.0-src.zip)|[Apache.NMS.AMQP-1.8.0-src.zip.asc](http://www.apache.org/dist/activemq/apache-nms-amqp/1.8.0/Apache.NMS.AMQP-1.8.0-src.zip.asc)|1.8.0|
-|Apache.NMS.AMQP Binary 
Assemblies|[Apache.NMS.AMQP-1.8.0-bin.zip](http://www.apache.org/dyn/closer.lua/activemq/apache-nms-amqp/1.8.0/Apache.NMS.AMQP-1.8.0-bin.zip)|[Apache.NMS.AMQP-1.8.0-bin.zip.asc](http://www.apache.org/dist/activemq/apache-nms-amqp/1.8.0/Apache.NMS.AMQP-1.8.0-bin.zip.asc)|1.8.0|
-|Apache.NMS.AMQP Nuget 
Package|[Apache.NMS.AMQP.1.8.0.nupkg](http://www.apache.org/dyn/closer.lua/activemq/apache-nms-amqp/1.8.0/Apache.NMS.AMQP.1.8.0.nupkg)|[Apache.NMS.AMQP.1.8.0.nupkg.asc](http://www.apache.org/dist/activemq/apache-nms-amqp/1.8.0/Apache.NMS.AMQP.1.8.0.nupkg.asc)|1.8.0|
-
-
-Git Tag Checkout
-----------------
-
-```
-git clone https://gitbox.apache.org/repos/asf/activemq-nms-amqp.git
-git checkout tags/1.8.0
-```
-
-Changelog
----------
-
-For a more detailed view of new features and bug fixes, see the [issue 
filter](https://issues.apache.org/jira/issues/?filter=12347539)
-
-
diff --git a/src/_nms_amqp_releases/apachenmsamqp-v181.md 
b/src/_nms_amqp_releases/apachenmsamqp-v181.md
deleted file mode 100644
index 1bc1761..0000000
--- a/src/_nms_amqp_releases/apachenmsamqp-v181.md
+++ /dev/null
@@ -1,31 +0,0 @@
----
-layout: default_md
-title: Apache.NMS.AMQP v1.8.1 
-title-class: page-title-nms
-type: nms
-release_date: 2021-04-04
----
-
-Download Here
--------------
-
-|Description|Download Link|Verify|Version|
-|---|---|---|---|
-|Apache.NMS.AMQP Source 
code|[Apache.NMS.AMQP-1.8.1-src.zip](https://www.apache.org/dyn/closer.lua/activemq/apache-nms-amqp/1.8.1/Apache.NMS.AMQP-1.8.1-src.zip)|[ASC](https://downloads.apache.org/activemq/apache-nms-amqp/1.8.1/Apache.NMS.AMQP-1.8.1-src.zip.asc),
 
[SHA512](https://downloads.apache.org/activemq/apache-nms-amqp/1.8.1/Apache.NMS.AMQP-1.8.1-src.zip.sha512)|1.8.1|
-|Apache.NMS.AMQP Binary 
Assemblies|[Apache.NMS.AMQP-1.8.1-bin.zip](https://www.apache.org/dyn/closer.lua/activemq/apache-nms-amqp/1.8.1/Apache.NMS.AMQP-1.8.1-bin.zip)|[ASC](https://downloads.apache.org/activemq/apache-nms-amqp/1.8.1/Apache.NMS.AMQP-1.8.1-bin.zip.asc),
 
[SHA512](https://downloads.apache.org/activemq/apache-nms-amqp/1.8.1/Apache.NMS.AMQP-1.8.1-bin.zip.sha512)|1.8.1|
-|Apache.NMS.AMQP Nuget 
Package|[Apache.NMS.AMQP.1.8.1.nupkg](https://www.apache.org/dyn/closer.lua/activemq/apache-nms-amqp/1.8.1/Apache.NMS.AMQP.1.8.1.nupkg)|[ASC](https://downloads.apache.org/activemq/apache-nms-amqp/1.8.1/Apache.NMS.AMQP.1.8.1.nupkg.asc),
 
[SHA512](https://downloads.apache.org/activemq/apache-nms-amqp/1.8.1/Apache.NMS.AMQP.1.8.1.nupkg.sha512)|1.8.1|
-
-Changelog
----------
-
-- AMQNET-627: Transactions implementation adjustments
-- AMQNET-629: Rework Meta classes
-- AMQNET-622: Invoke IConnection event listeners on connection lost and on 
reconnect
-- AMQNET-633: Fix session creation when connection not started
-- AMQNET-634: Use 4 as default msg priority
-- AMQNET-635: Update AMQPNetLite.Core to 2.4.0 version
-
-Verify the Integrity of Downloads
----------------------------------
-
-{% include verify_download.md %}
diff --git a/src/_nms_amqp_releases/nms-amqp-01-08-00-release.md 
b/src/_nms_amqp_releases/nms-amqp-01-08-00-release.md
new file mode 100644
index 0000000..9aded11
--- /dev/null
+++ b/src/_nms_amqp_releases/nms-amqp-01-08-00-release.md
@@ -0,0 +1,28 @@
+---
+version: 1.8.0
+release_date: 2019-11-04
+release_notes: 
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311201&version=12332992
+title: Apache.NMS.AMQP 1.8.0 Release
+redirect_from:
+- /components/nms/providers/amqp/downloads/apachenmsamqp-v180
+---
+
+New and Noteworthy
+------------------
+
+This is the first release of the Apache NMS AMQP client provider.
+
+It is also the first provider impl which adds .net standard 2.0 support, as 
well provides nuget packages.
+
+This NMS provider can be used against both ActiveMQ 5.x as well as ActiveMQ 
Artemis and any other AMQP 1.0 compliant broker.
+
+API Documentation
+-----------------
+
+Refer to the API [here](../../../nms-api)
+
+|Description|Download Link|PGP Signature File|Version|
+|---|---|---|---|
+|Apache.NMS Documentation 
|[Apache.NMS-1.8.0-docs.zip](http://www.apache.org/dyn/closer.lua/activemq/apache-nms-api/1.8.0/Apache.NMS-1.8.0-docs.zip)|[Apache.NMS-1.8.0-docs.zip.asc](http://www.apache.org/dist/activemq/apache-nms-api/1.8.0/Apache.NMS-1.8.0-docs.zip.asc)|1.8.0|
+
+
diff --git a/src/_nms_amqp_releases/nms-amqp-01-08-01-release.md 
b/src/_nms_amqp_releases/nms-amqp-01-08-01-release.md
new file mode 100644
index 0000000..99653ab
--- /dev/null
+++ b/src/_nms_amqp_releases/nms-amqp-01-08-01-release.md
@@ -0,0 +1,10 @@
+---
+version: 1.8.1
+release_date: 2021-04-04
+release_notes: 
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311201&version=12346504
+title: Apache.NMS.AMQP 1.8.1 Release
+redirect_from:
+- /components/nms/providers/amqp/downloads/apachenmsamqp-v181
+---
+
+Apache NMS.AMQP {{ page.version }} was released on {{ page.release_date | 
date_to_string: "ordinal", "US" }}. For details of the changes see the [release 
notes]({{ page.release_notes }}).
diff --git a/src/components/nms/providers/amqp/downloads/index.md 
b/src/components/nms/providers/amqp/downloads/index.md
index 022e826..1261d41 100644
--- a/src/components/nms/providers/amqp/downloads/index.md
+++ b/src/components/nms/providers/amqp/downloads/index.md
@@ -5,9 +5,27 @@ title-class: page-title-nms
 type: nms
 ---
 
-Description|Release Date|NMS API Rev
----|---|---
-[Apache.NMS.AMQP v1.8.1](apachenmsamqp-v181)|04/04/2020|v1.8.1
-[Apache.NMS.AMQP v1.8.0](apachenmsamqp-v180)|08/11/2019|v1.8.0
+This is the current NMS.AMQP release. For prior releases, please see the <a 
href="past_releases">past releases</a> page.
 
+It is important to [verify the integrity](#verify-the-integrity-of-downloads) 
of the files you download.
 
+{% assign reversed_releases = site["nms_amqp_releases"] | reverse %}
+
+{% for current_release_prefix in site.data.current_releases["nms_amqp"] %}
+    {% for release in reversed_releases %}
+        {% if release.version contains current_release_prefix %}
+#### NMS AMQP {{release.version}} ({{release.release_date | date_to_string: 
"ordinal", "US"}})
+[Release Notes]({{ release.release_notes }}) | [Release Page]({{release.url}})
+
+            {% include nms_amqp_download_links.md release=release %}
+            {% break %}
+        {% endif %}
+    {% endfor %}
+{% endfor %}
+
+<br/>
+
+--------------------------------------
+#### Verify the Integrity of Downloads
+
+{% include verify_download.md %}
diff --git a/src/components/nms/providers/amqp/downloads/past_releases.md 
b/src/components/nms/providers/amqp/downloads/past_releases.md
new file mode 100644
index 0000000..ab507c0
--- /dev/null
+++ b/src/components/nms/providers/amqp/downloads/past_releases.md
@@ -0,0 +1,37 @@
+---
+layout: default_md
+title: Apache.NMS.AMQP Past Releases
+title-class: page-title-nms
+type: nms
+---
+
+<div class="alert alert-warning">
+  These are older releases. To get the current release, please see the <a 
href="{{site.baseurl}}/components/nms/providers/amqp/downloads" 
class="alert-link">download page</a>.
+</div>
+
+For any releases not shown here, check the 
[archive](https://archive.apache.org/dist/activemq/apache-nms-amqp/).
+
+It is important to [verify the 
integrity]({{site.baseurl}}/components/nms/providers/amqp/downloads#verify-the-integrity-of-downloads)
 of the files you download.
+
+{% assign reversed_releases = site["nms_amqp_releases"] | reverse %}
+{% assign current_releases = "" | split: ',' %}
+
+{% for current_release_prefix in site.data.current_releases["nms_amqp"] %}
+    {% for release in reversed_releases %}
+        {% if release.version contains current_release_prefix %}
+            {% assign current_releases = current_releases | push: 
release.version %}
+            {% break %}
+        {% endif %}
+    {% endfor %}
+{% endfor %}
+
+{% for release in reversed_releases %}
+    {% unless current_releases contains release.version %}
+#### NMS AMQP {{release.version}} ({{release.release_date | date_to_string: 
"ordinal", "US"}})
+[Release Notes]({{ release.release_notes }}) | [Release Page]({{release.url}})
+
+{% include nms_amqp_download_links.md release=release %}
+
+<br/>
+    {% endunless %}
+{% endfor %}

Reply via email to