You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2020/12/18 18:48:35 UTC
[camel-website] branch master updated: chore: add custom link as an
download option
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 8968d92 chore: add custom link as an download option
8968d92 is described below
commit 8968d9232752e4d84608838248fa9621a684bef6
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Fri Dec 18 16:14:19 2020 +0100
chore: add custom link as an download option
This adds custom link as an option for downloads. This way we can link
to binary downloads hosted elsewhere, i.e. other than the ASF list, but
still most likely on the camel.apache.org website.
Even though it supports version substitution via `{version}` variable,
for Camel Kafka Connectors it links to the documentation and we only
publish the "latest" version. There is also an issue that a release
version, say `1.2.3` doesn't match up with the documentation version, as
we do it today, i.e. we would have documentation version of `1.2.x`. The
solution might be to publish documentation for each version, but that
will take a toll on the website build times, and we can't really have
docs for all versions ever released, the website would be become really
unmanageable.
So this is a first pass, just to help users find the downloads, and we
need to figure what we would like to do WRT versioning.
---
data/release-categories.yaml | 3 +++
layouts/partials/releases/downloads.html | 10 +++++++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/data/release-categories.yaml b/data/release-categories.yaml
index b04b915..cff3fa3 100644
--- a/data/release-categories.yaml
+++ b/data/release-categories.yaml
@@ -87,6 +87,9 @@ camel-kafka-connector:
- name: 'Sources'
path_format: 'camel/camel-kafka-connector/{version}/apache-camel-kafka-connector-{version}-src.zip'
filename_format: 'apache-camel-kafka-connector-{version}-src.zip'
+ - name: 'Binaries'
+ title: 'Connectors download list'
+ link: '/camel-kafka-connector/latest/connectors.html'
camel-quarkus:
id: 'camel-quarkus'
name: 'Apache Camel Quarkus'
diff --git a/layouts/partials/releases/downloads.html b/layouts/partials/releases/downloads.html
index 3195161..77660f1 100644
--- a/layouts/partials/releases/downloads.html
+++ b/layouts/partials/releases/downloads.html
@@ -144,9 +144,13 @@
{{ $path := replace $download.path_format "{version}" $v }}
{{ $filename := replace $download.filename_format "{version}" $v }}
<td>{{ $download.name}}</td>
- <td><a href="{{ $artifact_base_url }}{{ $path }}">{{ $filename }}</a></td>
- <td><a href="{{ $meta_base_url }}{{ $path }}.asc">{{ $filename }}.asc</a></td>
- <td><a href="{{ $meta_base_url }}{{ $path }}{{ $hash_extension }}">{{ $filename }}{{ $hash_extension }}</a></td>
+ {{ if $path }}
+ <td><a href="{{ $artifact_base_url }}{{ $path }}">{{ $filename }}</a></td>
+ <td><a href="{{ $meta_base_url }}{{ $path }}.asc">{{ $filename }}.asc</a></td>
+ <td><a href="{{ $meta_base_url }}{{ $path }}{{ $hash_extension }}">{{ $filename }}{{ $hash_extension }}</a></td>
+ {{ else }}
+ <td colspan="3"><a href="{{ .link }}">{{ replace .title "{version}" $v }}</a></td>
+ {{ end }}
{{ end }}
</tr>
{{ end }}