couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject git commit: updated refs/heads/1783-feature-add-asf-comments-in-rtd to 37383c1
Date Fri, 17 May 2013 22:10:17 GMT
Updated Branches:
  refs/heads/1783-feature-add-asf-comments-in-rtd [created] 37383c179


COUCHDB-1783 support ASF comments system in readthedocs.org


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

Branch: refs/heads/1783-feature-add-asf-comments-in-rtd
Commit: 37383c1795052ce594a60e6b9beb447708737d75
Parents: 537b545
Author: Dave Cottlehuber <dch@apache.org>
Authored: Tue Apr 30 14:33:33 2013 +0200
Committer: Dave Cottlehuber <dch@apache.org>
Committed: Fri May 17 22:18:23 2013 +0200

----------------------------------------------------------------------
 share/doc/build/Makefile.am           |    1 +
 share/doc/src/conf.py                 |    1 +
 share/doc/templates/asf-comments.html |   32 ++++++++++++++++++++++++++++
 3 files changed, 34 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/37383c17/share/doc/build/Makefile.am
----------------------------------------------------------------------
diff --git a/share/doc/build/Makefile.am b/share/doc/build/Makefile.am
index 564ae69..7bd80c3 100644
--- a/share/doc/build/Makefile.am
+++ b/share/doc/build/Makefile.am
@@ -183,6 +183,7 @@ src_files = \
 
 src_files_html = \
     ../static/rtd.css \
+    ../templates/asf-comments.html \
     ../templates/help.html \
     ../templates/searchbox.html \
     ../templates/utilities.html

http://git-wip-us.apache.org/repos/asf/couchdb/blob/37383c17/share/doc/src/conf.py
----------------------------------------------------------------------
diff --git a/share/doc/src/conf.py b/share/doc/src/conf.py
index 6fd9112..5f300d3 100644
--- a/share/doc/src/conf.py
+++ b/share/doc/src/conf.py
@@ -53,6 +53,7 @@ html_sidebars= {
         "relations.html",
         "utilities.html",
         "help.html",
+        "asf-comments.html"
     ]
 }
 

http://git-wip-us.apache.org/repos/asf/couchdb/blob/37383c17/share/doc/templates/asf-comments.html
----------------------------------------------------------------------
diff --git a/share/doc/templates/asf-comments.html b/share/doc/templates/asf-comments.html
new file mode 100644
index 0000000..a30c11a
--- /dev/null
+++ b/share/doc/templates/asf-comments.html
@@ -0,0 +1,32 @@
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied. See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+
+{% if not local %}
+<script type="text/javascript"><!--//--><![CDATA[//><!--
+var comments_shortname = 'couchdb';
+var comments_identifier = '{{path}}'; // Insert your unique page ID here
+(function(w, d) {
+	d.write('<div id="comments_thread"><\/div>');
+	var s = d.createElement('script');
+	s.type = 'text/javascript';
+	s.async = true;
+	s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page='
+ comments_identifier;
+	(d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
+})(window, document);
+//--><!]]></script>
+<noscript>
+<iframe width="100%" height="500" src="https://comments.apache.org/iframe.lua?site=couchdb&amp;page={{path}}"></iframe>
+</noscript>
+{% endif %}


Mime
View raw message