You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/01/05 18:41:37 UTC

[GitHub] merlimat closed pull request #999: Update downloads page to ensure Apache compliance (WIP)

merlimat closed pull request #999: Update downloads page to ensure Apache compliance (WIP)
URL: https://github.com/apache/incubator-pulsar/pull/999
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/site/_includes/explanations/install-package.md b/site/_includes/explanations/install-package.md
index ada8f2fdc..8c16c4da3 100644
--- a/site/_includes/explanations/install-package.md
+++ b/site/_includes/explanations/install-package.md
@@ -19,8 +19,9 @@
 
 -->
 
-{% capture binary_release_url %}http://www.apache.org/dyn/closer.cgi/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-bin.tar.gz{% endcapture %}
-{% capture source_release_url %}http://www.apache.org/dyn/closer.cgi/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-src.tar.gz{% endcapture %}
+{% capture root_url %}http://www.apache.org/dist/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}{% endcapture %}
+{% capture binary_release_url %}{{ root_url }}-bin.tar.gz{% endcapture %}
+{% capture source_release_url %}{{ root_url }}-src.tar.gz{% endcapture %}
 
 ## System requirements
 
@@ -41,10 +42,10 @@ To get started running Pulsar, download a binary tarball release in one of the f
 
   ```shell
   # Source release
-  $ wget http://archive.apache.org/dist/incubator/pulsar/pulsar-{{site.current_version}}/apache-pulsar-{{site.current_version}}-src.tar.gz
+  $ wget {{ source_release_url }}
 
   # Binary release
-  $ wget http://archive.apache.org/dist/incubator/pulsar/pulsar-{{site.current_version}}/apache-pulsar-{{site.current_version}}-bin.tar.gz
+  $ wget {{ binary_release_url }}
   ```
 
 Once the tarball is downloaded, untar it and `cd` into the resulting directory:
diff --git a/site/download.md b/site/download.md
index 1906b16a0..c9353e236 100644
--- a/site/download.md
+++ b/site/download.md
@@ -24,29 +24,18 @@ layout: content
 
 -->
 
+{% capture root_url %}http://www.apache.org/dyn/closer.cgi/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}{% endcapture %}
+
 You can download Pulsar from the [releases page](https://github.com/apache/incubator-pulsar/releases) on GitHub or here:
 
 ### Version {{ site.current_version }} releases
 
-#### Binary release
-
-File | Link
-:----|:----
-Tarball | [apache-pulsar-{{ site.current_version }}-bin.tar.gz](http://archive.apache.org/dist/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-bin.tar.gz)
-[ASCII-armored detached signature](http://www.apache.org/dev/release-signing#ascii) | [apache-pulsar-{{ site.current_version }}-bin.tar.gz.asc](http://archive.apache.org/dist/incubator/pulsar//pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-bin.tar.gz.asc)
-[MD5 checksum](http://www.apache.org/dev/release-signing#md5) | [apache-pulsar-{{ site.current_version }}-bin.tar.gz.md5](http://archive.apache.org/dist/incubator/pulsar//pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-bin.tar.gz.md5)
-[SHA512 checksum](http://www.apache.org/dev/release-signing#sha-checksum) | [apache-pulsar-{{ site.current_version }}-bin.tar.gz.sha512](http://archive.apache.org/dist/incubator/pulsar//pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-bin.tar.gz.md5)
-
-#### Source release
+Release | Link | Crypto files
+:-------|:-----|:------------
+Binary | [pulsar-{{ site.current_version }}-bin.tar.gz]({{ root_url }}-bin.tar.gz) | [asc]({{ root_url }}-bin.tar.gz.asc), [md5]({{ root_url }}-bin.tar.gz.md5), [sha512]({{ root_url }}-bin.tar.gz.sha512)
+Source | [pulsar-{{ site.current_version }}-src.tar.gz]({{ root_url }}-src.tar.gz) | [asc]({{ root_url }}-src.tar.gz.asc), [md5]({{ root_url }}-src.tar.gz.md5), [sha512]({{ root_url }}-src.tar.gz.sha512)
 
-File | Link
-:----|:----
-Tarball | [apache-pulsar-{{ site.current_version }}-src.tar.gz](http://archive.apache.org/dist/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-src.tar.gz)
-[ASCII-armored detached signature](http://www.apache.org/dev/release-signing#ascii) | [apache-pulsar-{{ site.current_version }}-src.tar.gz.asc](http://archive.apache.org/dist/incubator/pulsar//pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-src.tar.gz.asc)
-[MD5 checksum](http://www.apache.org/dev/release-signing#md5) | [apache-pulsar-{{ site.current_version }}-src.tar.gz.md5](http://archive.apache.org/dist/incubator/pulsar//pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-src.tar.gz.md5)
-[SHA512 checksum](http://www.apache.org/dev/release-signing#sha-checksum) | [apache-pulsar-{{ site.current_version }}-src.tar.gz.sha512](http://archive.apache.org/dist/incubator/pulsar//pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-src.tar.gz.md5)
-
-{% include admonition.html type="info" content='You can download the [KEYS](http://www.apache.org/dev/release-signing#keys-policy) file for Pulsar <a href="https://dist.apache.org/repos/dist/release/incubator/pulsar/KEYS" download>here</a>.' %}
+{% include admonition.html type="info" content='You can download the [KEYS](http://www.apache.org/dev/release-signing#keys-policy) file for Pulsar <a href="http://www.apache.org/dist/incubator/pulsar/KEYS" download>here</a>.' %}
 
 ### Release notes for the {{ site.current_version }} release
 
@@ -66,13 +55,15 @@ Client guide | API docs
 
 
 {% if site.archived_releases %}
+{% capture archive_root_url %}http://archive.apache.org/dist/incubator/pulsar{% endcapture %}
+{% capture release_notes_root_url %}https://github.com/apache/incubator-pulsar/releases/tag{% endcapture %}
 
-### Other releases
+### Older releases
 
-| Release   | Download | Release notes                                                                                      |
-|:-------|:--------------------------------------------|--------------------------------------------|
+Release | Download | Crypto files | Release notes
+:-------|:---------|:-------------|:-------------
 {% for version in site.archived_releases
-%} {{version}} | [http://archive.apache.org/dist/incubator/pulsar/pulsar-{{version}}](http://archive.apache.org/dist/incubator/pulsar/pulsar-{{version}}) | [Release notes v{{version}}](https://github.com/apache/incubator-pulsar/releases/tag/v{{ version }})|
+%} {{ version }} binary | [pulsar-{{version}}-bin.tar.gz]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-bin.tar.gz) | [asc]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-bin.tar.gz.asc), [md5]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-bin.tar.gz.md5), [sha]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-bin.tar.gz.sha) | [Release notes v{{ version }}]({{ release_notes_root_url }}/v{{ version }})
+{{ version }} source | [pulsar-{{ version }}-src.tar.gz]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-src.tar.gz) | [asc]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-src.tar.gz.asc), [md5]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-src.tar.gz.md5), [sha]({{ archive_root_url }}/pulsar-{{ version }}/apache-pulsar-{{ version }}-src.tar.gz.sha)
 {% endfor %}
-
-{% endif %}
+{% endif %}
\ No newline at end of file


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services