This is an automated email from the ASF dual-hosted git repository. zregvart pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-website.git
The following commit(s) were added to refs/heads/master by this push: new b6b73eb chore: dynamic downloads page b6b73eb is described below commit b6b73eb0097a4233051043301af08f9af8bee064 Author: Zoran Regvart <zregv...@apache.org> AuthorDate: Fri Jul 12 16:01:11 2019 +0200 chore: dynamic downloads page This makes the downloads page dynamic with respect to release notes, we can now just add release notes and it should update with the latest. --- content/download/_index.md | 56 --------------------- layouts/download/download.html | 109 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+), 56 deletions(-) diff --git a/content/download/_index.md b/content/download/_index.md index 50ca2f5..c0993ee 100644 --- a/content/download/_index.md +++ b/content/download/_index.md @@ -2,70 +2,14 @@ title: "Download" --- -## Latest release - -Grab these releases while they are hot! - -* The latest release for Camel 2.24.x is [Camel 2.24.1 Release](/releases/release-2.24.1). -* The latest release for Camel 2.23.x is [Camel 2.23.3 Release](/releases/release-2.23.3). -* The latest release for Camel 2.22.x is [Camel 2.22.5 Release](/releases/release-2.22.5). -* The latest release for Camel 2.21.x is [Camel 2.21.5 Release](/releases/release-2.21.5). -* Camel versions 2.20.x and older are no longer actively developed. - -## Older Releases - -See [Download Archives](/releases/) - -## Getting the latest distributions - -### Binary Distribution - -{{< bootstrap-table "table table-hover text-left" >}} -| Description | Download Link | PGP Signature file of download | SHA512 Checksum file of download | -|-------------|---------------|--------------------------------|--------------------------------| -| Windows Distribution (2.23.x branch) | [apache-camel-2.23.3.zip](http://www.apache.org/dyn/closer.lua?filename=camel/apache-camel/2.23.3/apache-camel-2.23.3.zip&action=download) | [apache-camel-2.23.3.zip.asc](https://www.apache.org/dist/camel/apache-camel/2.23.3/apache-camel-2.23.3.zip.asc) | [apache-camel-2.23.3.zip.sha512](https://www.apache.org/dist/camel/apache-camel/2.23.3/apache-camel-2.23.3.zip.sha512) | -| Unix/Linux/Cygwin Distribution (2.23.x branch) | [apache-camel-2.23.3.tar.gz](http://www.apache.org/dyn/closer.lua?filename=camel/apache-camel/2.23.3/apache-camel-2.23.3.tar.gz&action=download) | [apache-camel-2.23.3.tar.gz.asc](https://www.apache.org/dist/camel/apache-camel/2.23.3/apache-camel-2.23.3.tar.gz.asc) | [apache-camel-2.23.3.tar.gz.sha512](https://www.apache.org/dist/camel/apache-camel/2.23.3/apache-camel-2.23.3.tar.gz.sha512) | -| Windows Distribution (2.22.x branch) | [apache-camel-2.22.5.zip](http://www.apache.org/dyn/closer.lua?filename=camel/apache-camel/2.22.5/apache-camel-2.22.5.zip&action=download) | [apache-camel-2.22.5.zip.asc](https://www.apache.org/dist/camel/apache-camel/2.22.5/apache-camel-2.22.5.zip.asc) | [apache-camel-2.22.5.zip.sha512](https://www.apache.org/dist/camel/apache-camel/2.22.5/apache-camel-2.22.5.zip.sha512) | -| Unix/Linux/Cygwin Distribution (2.22.x branch) | [apache-camel-2.22.5.tar.gz](http://www.apache.org/dyn/closer.lua?filename=camel/apache-camel/2.22.5/apache-camel-2.22.5.tar.gz&action=download) | [apache-camel-2.22.5.tar.gz.asc](https://www.apache.org/dist/camel/apache-camel/2.22.5/apache-camel-2.22.5.tar.gz.asc) | [apache-camel-2.22.5.tar.gz.sha512](https://www.apache.org/dist/camel/apache-camel/2.22.5/apache-camel-2.22.5.tar.gz.sha512) | -| Windows Distribution (2.21.x branch) | [apache-camel-2.21.5.zip](http://www.apache.org/dyn/closer.lua?filename=camel/apache-camel/2.21.5/apache-camel-2.21.5.zip&action=download) | [apache-camel-2.21.5.zip.asc](https://www.apache.org/dist/camel/apache-camel/2.21.5/apache-camel-2.21.5.zip.asc) | [apache-camel-2.21.5.zip.sha512](https://www.apache.org/dist/camel/apache-camel/2.21.5/apache-camel-2.21.5.zip.sha512) | -| Unix/Linux/Cygwin Distribution (2.21.x branch) | [apache-camel-2.21.5.tar.gz](http://www.apache.org/dyn/closer.lua?filename=camel/apache-camel/2.21.5/apache-camel-2.21.5.tar.gz&action=download) | [apache-camel-2.21.5.tar.gz.asc](https://www.apache.org/dist/camel/apache-camel/2.21.5/apache-camel-2.21.5.tar.gz.asc) | [apache-camel-2.21.5.tar.gz.sha512](https://www.apache.org/dist/camel/apache-camel/2.21.5/apache-camel-2.21.5.tar.gz.sha512) | -{{< /bootstrap-table >}} - -### Source Distribution - -{{< bootstrap-table "table table-hover text-left" >}} -| Description | Download Link | PGP Signature file of download | SHA512 Checksum file of download | -|-------------|---------------|--------------------------------|-------------------------------| -| Source (zip - 2.23.x branch) | [apache-camel-2.23.3-src.zip](http://www.apache.org/dyn/closer.lua?filename=camel/apache-camel/2.23.3/apache-camel-2.23.3-src.zip&action=download) | [apache-camel-2.23.3-src.zip.asc](https://www.apache.org/dist/camel/apache-camel/2.23.3/apache-camel-2.23.3-src.zip.asc) | [apache-camel-2.23.3-src.zip.sha512](https://www.apache.org/dist/camel/apache-camel/2.23.3/apache-camel-2.23.3-src.zip.sha512) | -| Source (zip - 2.22.x branch) | [apache-camel-2.22.5-src.zip](http://www.apache.org/dyn/closer.lua?filename=camel/apache-camel/2.22.5/apache-camel-2.22.5-src.zip&action=download) | [apache-camel-2.22.5-src.zip.asc](https://www.apache.org/dist/camel/apache-camel/2.22.5/apache-camel-2.22.5-src.zip.asc) | [apache-camel-2.22.5-src.zip.sha512](https://www.apache.org/dist/camel/apache-camel/2.22.5/apache-camel-2.22.5-src.zip.sha512) | -| Source (zip - 2.21.x branch) | [apache-camel-2.21.5-src.zip](http://www.apache.org/dyn/closer.lua?filename=camel/apache-camel/2.21.5/apache-camel-2.21.5-src.zip&action=download) | [apache-camel-2.21.5-src.zip.asc](https://www.apache.org/dist/camel/apache-camel/2.21.5/apache-camel-2.21.5-src.zip.asc) | [apache-camel-2.21.5-src.zip.sha512](https://www.apache.org/dist/camel/apache-camel/2.21.5/apache-camel-2.21.5-src.zip.sha512) | -{{< /bootstrap-table >}} - ### Keys The KEYS used to sign the release can be found [here](https://www.apache.org/dist/camel/apache-camel/KEYS). -### Getting the Binaries using Maven - -To use this release in your maven project, the proper dependency configuration that you should use in your Maven POM is: - -``` -<dependency> - <groupId>org.apache.camel</groupId> - <artifactId>camel-core</artifactId> - <version>2.24.1</version> -</dependency> -``` - -### Getting past releases - -See the [Download Archives](/download-archives/) for all time releases. - ## Maven 2 Repositories {{< bootstrap-table "table table-hover text-left" >}} | Description | Download Link | |-------------|---------------| |Apache Camel Releases | https://repository.apache.org/content/repositories/releases/org/apache/camel/apache-camel/ | -|Apache Camel Releases (old) | For Camel 1.6.0 or older releases: http://people.apache.org/repo/m2-ibiblio-rsync-repository/ | {{< /bootstrap-table >}} diff --git a/layouts/download/download.html b/layouts/download/download.html index 485bf39..27c07d3 100644 --- a/layouts/download/download.html +++ b/layouts/download/download.html @@ -3,6 +3,115 @@ <div class="container pb-5"> <h1>{{ .Title }}</h1> + <h2>Latest releases</h2> + + <p>Apache Camel community provides support for the latest three major versions. Latest version receives new features, next two supported versions receive only bug fixes.</p> + + <ul> + {{ $releases := ((where .Site.Pages "Type" "release-note").ByParam "version").Reverse }} + {{ $major := "" }} + {{ $cnt := 1 }} + {{ range $releases }} + {{ $this_major := .Params.version | replaceRE "\\.\\d+$" "" }} + {{ if (and (le $cnt 3) (or (eq $major "") (ne $major $this_major ))) }} + <li>The latest {{ if eq $major "" }}feature{{ else }}bugfix{{ end }} release of Camel {{ $this_major }}.x is <a href="{{ .RelPermalink }}">{{ .Params.version }}</a></li> + {{ $cnt = add $cnt 1 }} + {{ end }} + {{ $major = .Params.version | replaceRE "\\.\\d+$" "" }} + {{ end }} + </ul> + + <h3>Using Maven</h3> + + + <p>To use this release in your maven project, the proper dependency configuration that you should use in your Maven POM is:</> + + <pre><code class="xml"><dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-core</artifactId> + <version>{{ range (first 1 ((where .Site.Pages "Type" "release-note").ByParam "version").Reverse) }}{{ .Params.version }}{{ end }}</version> +</dependency></code></pre> + + <h3>Getting the latest distributions</h3> + + <h4>Binary Distribution</h4> + + {{ $releases := ((where .Site.Pages "Type" "release-note").ByParam "version").Reverse }} + {{ $major := "" }} + {{ $cnt := 1 }} + <table class="table table-hover text-left"> + <thead class="thead-light"> + <tr> + <th>Version</th> + <th>Description</th> + <th>Download Link</th> + <th>PGP Signature file of download</th> + <th>SHA512 Checksum file of download</th> + </tr> + </thead> + + {{ range $releases }} + {{ $this_major := .Params.version | replaceRE "\\.\\d+$" "" }} + {{ if (and (le $cnt 3) (or (eq $major "") (ne $major $this_major ))) }} + <tbody> + <tr> + <td rowspan="2"><strong>{{ .Params.version }}</strong><br/><small>{{ if eq $major "" }}feature{{ else }}bugfix{{ end }}</small></td> + <td>Windows Distribution</td> + <td><a href="http://www.apache.org/dyn/closer.lua?filename=camel/apache-camel/{{ .Params.version }}/apache-camel-{{ .Params.version }}.zip&action=download">apache-camel-{{ .Params.version }}.zip</a></td> + <td><a href="https://www.apache.org/dist/camel/apache-camel/{{ .Params.version }}/apache-camel-{{ .Params.version }}.zip.asc">apache-camel-{{ .Params.version }}.zip.asc</a></td> + <td><a href="https://www.apache.org/dist/camel/apache-camel/{{ .Params.version }}/apache-camel-{{ .Params.version }}.zip.sha512">apache-camel-{{ .Params.version }}.zip.sha512</a></td> + </tr> + <tr> + <td>Unix/Linux/Cygwin Distribution</td> + <td><a href="http://www.apache.org/dyn/closer.lua?filename=camel/apache-camel/{{ .Params.version }}/apache-camel-{{ .Params.version }}.tar.gz&action=download">apache-camel-{{ .Params.version }}.tar.gz</a></td> + <td><a href="https://www.apache.org/dist/camel/apache-camel/{{ .Params.version }}/apache-camel-{{ .Params.version }}.tar.gz.asc">apache-camel-{{ .Params.version }}.tar.gz.asc</a></td> + <td><a href="https://www.apache.org/dist/camel/apache-camel/{{ .Params.version }}/apache-camel-{{ .Params.version }}.tar.gz.sha512">apache-camel-{{ .Params.version }}.tar.gz.sha512</a></td> + </tr> + </tbody> + {{ $cnt = add $cnt 1 }} + {{ end }} + {{ $major = .Params.version | replaceRE "\\.\\d+$" "" }} + {{ end }} + </table> + + <h4>Source Distribution</h4> + + {{ $releases := ((where .Site.Pages "Type" "release-note").ByParam "version").Reverse }} + {{ $major := "" }} + {{ $cnt := 1 }} + <table class="table table-hover text-left"> + <thead class="thead-light"> + <tr> + <th>Version</th> + <th>Description</th> + <th>Download Link</th> + <th>PGP Signature file of download</th> + <th>SHA512 Checksum file of download</th> + </tr> + </thead> + + {{ range $releases }} + {{ $this_major := .Params.version | replaceRE "\\.\\d+$" "" }} + {{ if (and (le $cnt 3) (or (eq $major "") (ne $major $this_major ))) }} + <tbody> + <tr> + <td><strong>{{ .Params.version }}</strong><br/><small>{{ if eq $major "" }}feature{{ else }}bugfix{{ end }}</small></td> + <td>Source ZIP file</td> + <td><a href="http://www.apache.org/dyn/closer.lua?filename=camel/apache-camel/{{ .Params.version }}/apache-camel-{{ .Params.version }}-src.zip&action=download">apache-camel-{{ .Params.version }}-src.zip</a></td> + <td><a href="https://www.apache.org/dist/camel/apache-camel/{{ .Params.version }}/apache-camel-{{ .Params.version }}-src.zip.asc">apache-camel-{{ .Params.version }}-src.zip.asc</a></td> + <td><a href="https://www.apache.org/dist/camel/apache-camel/{{ .Params.version }}/apache-camel-{{ .Params.version }}-src.zip.sha512">apache-camel-{{ .Params.version }}-src.zip.sha512</a></td> + </tr> + </tbody> + {{ $cnt = add $cnt 1 }} + {{ end }} + {{ $major = .Params.version | replaceRE "\\.\\d+$" "" }} + {{ end }} + </table> + + <h2>Older releases</h2> + + All releases are listed on the <a href="{{ "/releases" | relURL}}">Releases</a> archive, here you will also find releases that are no longer supported. + {{ .Content }} </div>