Repository: incubator-apex-site Updated Branches: refs/heads/master f998925fc -> cb16e1a17
Updating documentation with Apex Core 3.4.0 release; Adding links to previous documentation version in Downloads Project: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/commit/cb16e1a1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/tree/cb16e1a1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-apex-site/diff/cb16e1a1 Branch: refs/heads/master Commit: cb16e1a1748df5b3cf1ff99ed2c9def7d75d071c Parents: f998925 Author: sashadt <sa...@datatorrent.com> Authored: Fri May 13 15:58:44 2016 -0700 Committer: sashadt <sa...@datatorrent.com> Committed: Fri May 13 15:58:44 2016 -0700 ---------------------------------------------------------------------- gulpfile.js | 8 ++++++-- releases.json | 4 ++++ src/md/docs.md | 1 + src/pages/downloads.html | 8 ++++++++ 4 files changed, 19 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-apex-site/blob/cb16e1a1/gulpfile.js ---------------------------------------------------------------------- diff --git a/gulpfile.js b/gulpfile.js index 253aff5..6e90a37 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -334,9 +334,13 @@ gulp.task('fetch-releases', function(taskCb) { // Create array of releases from this filtered NodeList var releases = releaseLinks.map(function(el) { + + // Trim the href attribute of leading "v" and trailing slash + var releaseVersion = el.innerHTML.trim().replace(/^v/, '').replace(/\/$/, ''); + var docsVersion = semver.major(releaseVersion) + '.' + semver.minor(releaseVersion); return { - // Trim the href attribute of leading "v" and trailing slash - version: el.innerHTML.trim().replace(/^v/, '').replace(/\/$/, ''), + version: releaseVersion, + docs: docsVersion, // Add repo for use in async.each call below repo: target.repo }; http://git-wip-us.apache.org/repos/asf/incubator-apex-site/blob/cb16e1a1/releases.json ---------------------------------------------------------------------- diff --git a/releases.json b/releases.json index d6e3fee..3fee8b1 100644 --- a/releases.json +++ b/releases.json @@ -3,16 +3,19 @@ "src": [ { "version": "3.4.0", + "docs": "3.4", "repo": "incubator-apex-core", "date": 1462902111000 }, { "version": "3.2.1-incubating", + "docs": "3.2", "repo": "incubator-apex-core", "date": 1461193940000 }, { "version": "3.3.0-incubating", + "docs": "3.3", "repo": "incubator-apex-core", "date": 1454908501000 } @@ -22,6 +25,7 @@ "src": [ { "version": "3.3.1-incubating", + "docs": "3.3", "repo": "incubator-apex-malhar", "date": 1456985606000 } http://git-wip-us.apache.org/repos/asf/incubator-apex-site/blob/cb16e1a1/src/md/docs.md ---------------------------------------------------------------------- diff --git a/src/md/docs.md b/src/md/docs.md index 439afd6..8d7d135 100644 --- a/src/md/docs.md +++ b/src/md/docs.md @@ -4,6 +4,7 @@ - **[Apache Apex Malhar Documentation](/docs/malhar/)** for the operator library including a diagrammatic taxonomy and some in-depth tutorials for selected operators (such as Kafka Input). - **<a href="https://www.datatorrent.com/docs/apidocs/" rel="nofollow">Java API documentation</a>** for both the platform and the operator library. +Documentation for previous releases is available in [Downloads](/downloads.html). ### Writing Apache Apex Applications http://git-wip-us.apache.org/repos/asf/incubator-apex-site/blob/cb16e1a1/src/pages/downloads.html ---------------------------------------------------------------------- diff --git a/src/pages/downloads.html b/src/pages/downloads.html index 0ea9111..18f52fd 100644 --- a/src/pages/downloads.html +++ b/src/pages/downloads.html @@ -14,6 +14,7 @@ <th scope="col">Date</th> <th scope="col">Source (zip)</th> <th scope="col">Source (tarball)</th> + <th scope="col">Docs</th> </tr> </thead> <tbody> @@ -46,6 +47,9 @@ ) </small> </td> + <td> + <a href="/docs/apex-{{ version.docs }}">apex-{{ version.docs }}</a><br> + </td> </tr> {{/each}} </tbody> @@ -62,6 +66,7 @@ <th scope="col">Date</th> <th scope="col">Source (zip)</th> <th scope="col">Source (tarball)</th> + <th scope="col">Docs</th> </tr> </thead> <tbody> @@ -94,6 +99,9 @@ ) </small> </td> + <td> + <a href="/docs/malhar-{{ version.docs }}">malhar-{{ version.docs }}</a><br> + </td> </tr> {{/each}} </tbody>