aboutsummaryrefslogtreecommitdiffstats
path: root/doc/_sphinx
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-06-20 17:35:15 +0000
committerlloyd <[email protected]>2012-06-20 17:35:15 +0000
commit254bad7d9ffb98b7b667bcc25ced40bf227526a6 (patch)
tree6b9094cd1d45b666a01dd3cba79ac39a7af7cdab /doc/_sphinx
parentb5753ba9469450adde1136c5d50e82b4cad7b658 (diff)
Hooks for Disqus comments
Diffstat (limited to 'doc/_sphinx')
-rw-r--r--doc/_sphinx/disqus/page.html22
-rw-r--r--doc/_sphinx/templates/layout.html9
2 files changed, 31 insertions, 0 deletions
diff --git a/doc/_sphinx/disqus/page.html b/doc/_sphinx/disqus/page.html
new file mode 100644
index 000000000..0ad5db3b7
--- /dev/null
+++ b/doc/_sphinx/disqus/page.html
@@ -0,0 +1,22 @@
+{% extends "!page.html" %}
+
+{% block body %}
+{{ super() }}
+
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+ var disqus_shortname = 'botan';
+ var disqus_developer = 1; // testing mode
+
+ var disqus_identifier = 'botan_{{ pagename }}';
+ var disqus_url = 'http://botan.randombit.net/{{ pagename }}.html';
+
+ (function() {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+</script>
+<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+
+{% endblock %}
diff --git a/doc/_sphinx/templates/layout.html b/doc/_sphinx/templates/layout.html
new file mode 100644
index 000000000..c907c7597
--- /dev/null
+++ b/doc/_sphinx/templates/layout.html
@@ -0,0 +1,9 @@
+{% extends "!layout.html" %}
+
+{% block header %}
+ <div class="header-wrapper">
+ <div class="header">
+ <h1>{{ shorttitle|e }}</h1>
+ </div>
+ </div>
+{% endblock %}