From 3d2b395c6f6c07fcf3fd14ccaf31d3d87cf403e2 Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Wed, 15 Jan 2014 16:49:16 -0700 Subject: [PATCH] updated docs to include 0.90 API --- docs/api_methods_0_90.asciidoc | 4 ++-- docs/index.asciidoc | 2 ++ scripts/generate/js_api.js | 2 ++ scripts/generate/templates/api_methods.tmpl | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/api_methods_0_90.asciidoc b/docs/api_methods_0_90.asciidoc index 0214a5166..e63745c4f 100644 --- a/docs/api_methods_0_90.asciidoc +++ b/docs/api_methods_0_90.asciidoc @@ -1,5 +1,5 @@ -[[api-reference]] -== API Method Reference +[[api-reference-0-90]] +== 0.90 API Method Reference [[api-bulk]] diff --git a/docs/index.asciidoc b/docs/index.asciidoc index bafe028da..11784df8f 100644 --- a/docs/index.asciidoc +++ b/docs/index.asciidoc @@ -8,6 +8,8 @@ include::api_conventions.asciidoc[] include::api_methods.asciidoc[] +include::api_methods_0_90.asciidoc[] + include::configuration.asciidoc[] include::extending_core_components.asciidoc[] diff --git a/scripts/generate/js_api.js b/scripts/generate/js_api.js index 9d4d571fe..1937b1ea6 100644 --- a/scripts/generate/js_api.js +++ b/scripts/generate/js_api.js @@ -101,6 +101,8 @@ module.exports = function (branch, done) { [].concat(apiSpec.actions).concat(apiSpec.proxies), 'name' ); + docVars.branch = branch; + docVars.branchSuffix = branchSuffix; done(); } diff --git a/scripts/generate/templates/api_methods.tmpl b/scripts/generate/templates/api_methods.tmpl index 3477637bd..45a18b249 100644 --- a/scripts/generate/templates/api_methods.tmpl +++ b/scripts/generate/templates/api_methods.tmpl @@ -1,5 +1,5 @@ -[[api-reference]] -== API Method Reference +[[api-reference<%= branch === 'master' ? '' : branchSuffix.replace(/_/g, '-') %>]] +== <%= branch === 'master' ? '' : branch + ' ' %>API Method Reference <% _.each(actions, function (action) { var actionId = 'api-' + action.name.toLowerCase().replace(/[^\w]+/g, '-');