diff --git a/docs/processors/version-data.js b/docs/processors/version-data.js index 76a6d01429..b31967cea9 100644 --- a/docs/processors/version-data.js +++ b/docs/processors/version-data.js @@ -37,7 +37,9 @@ module.exports = { }); extraData.version = { list: versions, - current: _.find(versions, { name: currentVersion }) + current: _.find(versions, { name: currentVersion }), + //Stable = most recent (first) valid semver version + stable: _.find(versions, function(v) { return semver.valid(v.name); }) }; } }; diff --git a/docs/templates/pages-data.template.html b/docs/templates/pages-data.template.html index 1e2ec20d60..93c147e4d8 100644 --- a/docs/templates/pages-data.template.html +++ b/docs/templates/pages-data.template.html @@ -49,7 +49,7 @@