diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-10-17 14:41:50 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-10-17 17:07:30 +0900 |
commit | 1f470bbbe811e9361141a3c49b88a674ed8e118b (patch) | |
tree | 7eb448ead8ff4d13a5137d80656188d9fce9d6fa | |
parent | 86fcd77c444acaedc4e5fca311365637716c3ead (diff) |
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
-rw-r--r-- | website/releases/index.html | 19 |
1 files 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) { |