You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by jm...@apache.org on 2016/11/19 03:57:48 UTC
[2/3] incubator-guacamole-website git commit: Define new layout for
non-legacy releases.
Define new layout for non-legacy releases.
Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/commit/d9239642
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/tree/d9239642
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/diff/d9239642
Branch: refs/heads/master
Commit: d9239642ea08f21e68ba405f20ceceb8a19258f7
Parents: f54c14e
Author: Michael Jumper <mj...@apache.org>
Authored: Wed Nov 16 21:25:41 2016 -0800
Committer: Michael Jumper <mj...@apache.org>
Committed: Fri Nov 18 17:02:31 2016 -0800
----------------------------------------------------------------------
_config.yml | 9 ++++++
_includes/download-list.html | 14 ++++++++++
_layouts/release.html | 58 +++++++++++++++++++++++++++++++++++++++
styles/main.css | 3 +-
4 files changed, 83 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/blob/d9239642/_config.yml
----------------------------------------------------------------------
diff --git a/_config.yml b/_config.yml
index 41ff0fc..44c0118 100644
--- a/_config.yml
+++ b/_config.yml
@@ -31,6 +31,11 @@ exclude:
# Custom collections
collections:
+ # All Apache Guacamole releases
+ releases:
+ output: true
+ permalink: /releases/:title/
+
# All Guacamole releases from prior to the Apache Incubator
legacy-releases:
output: true
@@ -51,3 +56,7 @@ defaults:
- scope: { type: legacy-releases }
values: { layout: legacy-release }
+ # All other releases should use the "release" layout
+ - scope: { type: releases }
+ values: { layout: release }
+
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/blob/d9239642/_includes/download-list.html
----------------------------------------------------------------------
diff --git a/_includes/download-list.html b/_includes/download-list.html
new file mode 100644
index 0000000..f54cee8
--- /dev/null
+++ b/_includes/download-list.html
@@ -0,0 +1,14 @@
+{% if include.files != empty %}
+ <table>
+ {% for file in include.files %}
+ <tr>
+ {% assign mirror = include.artifact-root | append: include.path %}
+ {% assign dist = include.checksum-root | append: include.path %}
+ <td><a href="{{ mirror | append: file }}">{{ file }}</a></td>
+ <td>[ <a href="{{ dist | append: file }}.md5">MD5</a> ]</td>
+ <td>[ <a href="{{ dist | append: file }}.sha">SHA</a> ]</td>
+ <td>[ <a href="{{ dist | append: file }}.asc">PGP</a> ]</td>
+ </tr>
+ {% endfor %}
+ </table>
+{% endif %}
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/blob/d9239642/_layouts/release.html
----------------------------------------------------------------------
diff --git a/_layouts/release.html b/_layouts/release.html
new file mode 100644
index 0000000..b98a091
--- /dev/null
+++ b/_layouts/release.html
@@ -0,0 +1,58 @@
+---
+layout: default
+permalink: /release/release-notes-:title
+---
+
+{% unless page.released %}
+ <div class="draft-disclaimer">
+ <p><strong>Apache Guacamole {{ page.title }} has not yet been
+ released!</strong> The artifacts and release notes below are drafts for
+ a proposed release of Apache Guacamole which has not yet occurred.</p>
+ </div>
+{% endunless %}
+
+<h1>Apache Guacamole {{ page.title }}</h1>
+
+<div id="links">
+
+ {% include link-list.html
+ title="Release documentation"
+ entries=page.documentation %}
+
+</div>
+
+<p>Apache Guacamole is split into two subprojects: "guacamole-client", the
+HTML5 web application which serves the Guacamole client to users, and
+"guacamole-server", the remote desktop proxy which the web application
+communicates with. The source code for each of these may be downloaded
+below.</p>
+
+<!-- Source archives -->
+<div class="release-downloads">
+ {% include download-list.html
+ artifact-root=page.artifact-root
+ checksum-root=page.checksum-root
+ path=page.download-path
+ files=page.source-dist %}
+</div>
+
+<p>If you do not wish to build Apache Guacamole entirely from source, pre-built
+versions of the web application (.war) and all extensions are provided here in
+binary form for convenience. <strong>Please note that guacamole-server must
+still be built and installed from source.</strong></p>
+
+<!-- All binaries -->
+<div class="release-downloads">
+ {% include download-list.html
+ artifact-root=page.artifact-root
+ checksum-root=page.checksum-root
+ path=page.download-path
+ files=page.binary-dist %}
+</div>
+
+<!-- Release notes -->
+<div id="release-notes">
+ <h1>Release notes</h1>
+ {{ content }}
+</div>
+
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/blob/d9239642/styles/main.css
----------------------------------------------------------------------
diff --git a/styles/main.css b/styles/main.css
index afd99ff..ca39e29 100644
--- a/styles/main.css
+++ b/styles/main.css
@@ -496,7 +496,8 @@ table.releases td {
padding-right: 1em;
}
-#content > .legacy-release-note {
+#content > .legacy-release-note,
+#content > .draft-disclaimer {
background: #FFFFFA;
border: 1px solid rgba(0, 0, 0, 0.25);
width: 8in;