You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by de...@apache.org on 2013/09/17 18:09:03 UTC
git commit: updated refs/heads/1889-centralized-documentation to
6ab11aa
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 <de...@gmail.com>
Authored: Tue Sep 17 12:08:48 2013 -0400
Committer: suelockwood <de...@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