couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject git commit: updated refs/heads/1889-centralized-documentation to 6ab11aa
Date Tue, 17 Sep 2013 16:09:03 GMT
Updated Branches:
  refs/heads/1889-centralized-documentation 1b4736b0f -> 6ab11aaf8


name spaced the docs object


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/6ab11aaf
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/6ab11aaf
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/6ab11aaf

Branch: refs/heads/1889-centralized-documentation
Commit: 6ab11aaf85454cf4a5f19760420c6ca32e58e740
Parents: 1b4736b
Author: suelockwood <deathbearbrown@gmail.com>
Authored: Tue Sep 17 12:08:48 2013 -0400
Committer: suelockwood <deathbearbrown@gmail.com>
Committed: Tue Sep 17 12:08:48 2013 -0400

----------------------------------------------------------------------
 src/fauxton/app/helpers.js | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/6ab11aaf/src/fauxton/app/helpers.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/helpers.js b/src/fauxton/app/helpers.js
index 27711c7..0cb90ae 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


Mime
View raw message