From 43df89377ca922706d18dbc53cb0a0ee383e5561 Mon Sep 17 00:00:00 2001 From: Andre Malo Date: Tue, 8 May 2012 21:18:40 +0000 Subject: [PATCH] - simplify and cleanup comment integration script - make comment version tag configurable git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1335773 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/style/version.ent | 3 +++ docs/manual/style/xsl/common.xsl | 41 +++++++++++++++++--------------- 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/docs/manual/style/version.ent b/docs/manual/style/version.ent index 3894511b0a4..4e6c06cdba2 100644 --- a/docs/manual/style/version.ent +++ b/docs/manual/style/version.ent @@ -22,3 +22,6 @@ + + + diff --git a/docs/manual/style/xsl/common.xsl b/docs/manual/style/xsl/common.xsl index 70f45002118..cb63f659d15 100644 --- a/docs/manual/style/xsl/common.xsl +++ b/docs/manual/style/xsl/common.xsl @@ -20,6 +20,8 @@ + + %HTTPD-VERSION; ]> &lf; - &lf; + &lf; &lf; @@ -294,23 +296,24 @@

This section is experimental!
Comments placed here should not be expected to last beyond the testing phase of this system, nor do we in any way guarantee that we'll read them.
&lf; -
&lf;
+var disqus_identifier = 'http://httpd.apache.org/docs/]]>&httpd.disqus;<\/div>'); + var s = d.createElement('script'); + s.type = 'text/javascript'; + s.async = true; + s.src = 'http' + '://' + disqus_shortname + '.disqus.com/embed.js'; + (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); + } + else { + d.write('
Comments have been disabled for offline viewing.<\/div>'); + } +})(window, document); +//-->>
@@ -340,11 +343,11 @@ if (disqus_identifier.indexOf("httpd.apache.org") != -1) { +//-->>
-- 2.47.3