diff options
author | suelockwood <deathbearbrown@gmail.com> | 2013-09-17 12:08:48 -0400 |
---|---|---|
committer | suelockwood <deathbearbrown@gmail.com> | 2013-09-17 12:08:48 -0400 |
commit | 6ab11aaf85454cf4a5f19760420c6ca32e58e740 (patch) | |
tree | 66b3492c309eb33d9e2786826bd7e5630a9ab79f | |
parent | 1b4736b0fbde8495bdb144ead0e3f18548429616 (diff) | |
download | couchdb-1889-centralized-documentation.tar.gz |
name spaced the docs object1889-centralized-documentation
-rw-r--r-- | src/fauxton/app/helpers.js | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/fauxton/app/helpers.js b/src/fauxton/app/helpers.js index 27711c77c..0cb90aecc 100644 --- a/src/fauxton/app/helpers.js +++ b/src/fauxton/app/helpers.js @@ -33,18 +33,19 @@ function() { // Get the URL for documentation, wiki, wherever we store it. - // update the URLs in documentation_urls.js + // update the URLs in documentation_urls.js + Helpers.docs = { + "docs": "http://docs.couchdb.org/en/latest/index.html", + "replication_doc": "http://docs.couchdb.org/en/latest/replicator.html#basics", + "design_doc": "http://docs.couchdb.org/en/latest/ddocs.html#design-docs", + "view_functions": "http://docs.couchdb.org/en/latest/ddocs.html#view-functions", + "map_functions": "http://docs.couchdb.org/en/latest/ddocs.html#map-functions", + "reduce_functions": "http://docs.couchdb.org/en/latest/ddocs.html#reduce-and-rereduce-functions", + "api_reference": "http://docs.couchdb.org/en/latest/api-basics.html?highlight=api" + }; + Helpers.getDocUrl = function(doc){ - var docs = { - "docs": "http://docs.couchdb.org/en/latest/index.html", - "replication_doc": "http://docs.couchdb.org/en/latest/replicator.html#basics", - "design_doc": "http://docs.couchdb.org/en/latest/ddocs.html#design-docs", - "view_functions": "http://docs.couchdb.org/en/latest/ddocs.html#view-functions", - "map_functions": "http://docs.couchdb.org/en/latest/ddocs.html#map-functions", - "reduce_functions": "http://docs.couchdb.org/en/latest/ddocs.html#reduce-and-rereduce-functions", - "api_reference": "http://docs.couchdb.org/en/latest/api-basics.html?highlight=api" - }; - return docs[doc] || '#'; + return Helpers.docs[doc] || '#'; }; // File size pretty printing, taken from futon.format.js |