From 1f470bbbe811e9361141a3c49b88a674ed8e118b Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Thu, 17 Oct 2013 14:41:50 +0900 Subject: [PATCH] Update release website index to use new documentation site Update the index page to link to release notes on the new documentation site. Also add links to the documentation for each release. Change-Id: Ia98b7a5cd8182af6537dc43f9647064c3194d631 --- website/releases/index.html | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/website/releases/index.html b/website/releases/index.html index 0ca0cb4cea..4a854d6421 100644 --- a/website/releases/index.html +++ b/website/releases/index.html @@ -44,7 +44,7 @@ function(data) { var doc = document; var frg = doc.createDocumentFragment(); var rx = /^gerrit(?:-full)?-([0-9.]+(?:-rc[0-9]+)?)[.]war/; - var rel = 'http://gerrit-documentation.googlecode.com/svn/ReleaseNotes/'; + var docs = 'https://gerrit-documentation.storage.googleapis.com/'; var src = 'https://gerrit.googlesource.com/gerrit/+/' data.items.sort(function(a,b) { @@ -111,14 +111,23 @@ function(data) { td.appendChild(doc.createTextNode(sizeText)); tr.appendChild(td); - td = doc.createElement('td'); + td_rel = doc.createElement('td'); + td_doc = doc.createElement('td'); if (v && f.name.indexOf('-rc') < 0) { + // Release notes link a = doc.createElement('a'); - a.href = rel + 'ReleaseNotes-' + v[1] + '.html'; + a.href = docs + 'ReleaseNotes/ReleaseNotes-' + v[1] + '.html'; a.appendChild(doc.createTextNode('Release Notes')); - td.appendChild(a); + td_rel.appendChild(a); + + // Documentation link + a = doc.createElement('a'); + a.href = docs + 'Documentation/' + v[1] + '/index.html'; + a.appendChild(doc.createTextNode('Documentation')); + td_doc.appendChild(a); } - tr.appendChild(td); + tr.appendChild(td_rel); + tr.appendChild(td_doc); td = doc.createElement('td'); if (v) {