groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy-website] branch asf-site updated: allow https for download page
Date Fri, 01 Mar 2019 10:50:57 GMT
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new e5c0711  allow https for download page
e5c0711 is described below

commit e5c071181642fede0f4931ad5627865b45370c4f
Author: Paddy <p.withams@gmail.com>
AuthorDate: Fri Mar 1 20:50:47 2019 +1000

    allow https for download page
---
 site/src/site/sitemap-dev.groovy  | 47 ++++++++++++++++++++++++++++++++++++++-
 site/src/site/sitemap-user.groovy |  5 +++--
 2 files changed, 49 insertions(+), 3 deletions(-)

diff --git a/site/src/site/sitemap-dev.groovy b/site/src/site/sitemap-dev.groovy
index ef8a81c..ff13bf5 100644
--- a/site/src/site/sitemap-dev.groovy
+++ b/site/src/site/sitemap-dev.groovy
@@ -26,7 +26,7 @@ menu {
     group('Groovy') {
         item 'Learn',                       "${userSiteBase}learn.html"
         item 'Documentation',               "${userSiteBase}documentation.html"
-        item 'Download',                    "${userSiteBase}download.html"
+        item 'Download',                    "${devSiteBase}download.html"
         item 'Support',                     "${userSiteBase}support.html"
         item 'Contribute',                  "${devSiteBase}"
         item 'Ecosystem',                   "${userSiteBase}ecosystem.html"
@@ -57,6 +57,7 @@ menu {
 pages {
 //    page 'index', 'index', [:]
     page 'search', 'search', [category: 'Search']
+    page 'download', 'download', [category: 'Download', distributions: distributions]
     page 'versioning', 'versioning', [category: 'Download']
     page 'contribute', 'index', [category: 'Develop']
     page 'buildstatus', 'buildstatus', [category: 'Develop']
@@ -70,3 +71,47 @@ documentation {
         item 'Download Groovy',                             'download',         'download',
                        false
     }
 }
+
+downloads {
+    distribution('Groovy 3.0') {
+        description {
+            yield 'Groovy 3.0 is a bleeding edge '
+            a(href: 'versioning.html', 'version')
+            yield ' of Groovy designed for JDK8+ and with the new Parrot parser enabled by
default. Pre-stable versions are available:'
+        }
+        version('3.0.0-alpha-4') {
+            stable false
+            windowsInstaller 'https://dl.bintray.com/groovy/Distributions/groovy-3.0.0-alpha-4-installer.exe'
+        }
+    }
+    distribution('Groovy 2.6') {
+        description {
+            yield 'Groovy 2.6 is designed for JDK7+ and supports the new Parrot parser (when
enabled) but has been'
+            yield ' retired before reaching final release to focus on Groovy 3.0. Alpha versions
are available to help'
+            yield ' people wanting to port towards Groovy 3.0 but who are stuck on JDK7.
See links under "Other versions" for details.'
+        }
+    }
+    distribution('Groovy 2.5') {
+        description {
+            yield 'Groovy 2.5 is the latest stable '
+            a(href: 'versioning.html', 'version')
+            yield ' of Groovy.'
+        }
+        version('2.5.6') {
+            stable true
+            windowsInstaller 'https://dl.bintray.com/groovy/Distributions/groovy-2.5.6-installer.exe'
+        }
+    }
+    distribution('Groovy 2.4') {
+        description {
+            yield 'Groovy 2.4 is the previous stable '
+            a(href: 'versioning.html', 'version')
+            yield ' of Groovy.'
+            yieldUnescaped ''' Important: Releases before 2.4.4 weren't done under the Apache
Software Foundation and are provided as a convenience, without any warranty.'''
+        }
+        version('2.4.16') {
+            stable true
+            windowsInstaller 'https://dl.bintray.com/groovy/Distributions/groovy-2.4.16-installer.exe'
+        }
+    }
+}
diff --git a/site/src/site/sitemap-user.groovy b/site/src/site/sitemap-user.groovy
index 9ebc219..4fd0524 100644
--- a/site/src/site/sitemap-user.groovy
+++ b/site/src/site/sitemap-user.groovy
@@ -18,14 +18,15 @@
  */
 
 wiki = false
+def devSiteBase = 'https:/groovy.apache.org/'
 
 menu {
     group('Groovy') {
         item 'Learn',                       'learn.html'
         item 'Documentation',               'documentation.html'
-        item 'Download',                    'download.html'
+        item 'Download',                    "${devSiteBase}download.html"
         item 'Support',                     'support.html'
-        item 'Contribute',                  'http://groovy.apache.org'
+        item 'Contribute',                  "${devSiteBase}"
         item 'Ecosystem',                   'ecosystem.html'
     }
 


Mime
View raw message