This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 14947b0 Remove references to the comment system. comments.a.o no
longer exists
14947b0 is described below
commit 14947b0742891711c4f86a82227e4ad594e6c0b5
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Mar 9 12:13:57 2020 +0000
Remove references to the comment system. comments.a.o no longer exists
---
webapps/docs/tomcat-docs.xsl | 78 ++------------------------------------------
1 file changed, 2 insertions(+), 76 deletions(-)
diff --git a/webapps/docs/tomcat-docs.xsl b/webapps/docs/tomcat-docs.xsl
index e507780..9f7551d 100644
--- a/webapps/docs/tomcat-docs.xsl
+++ b/webapps/docs/tomcat-docs.xsl
@@ -53,7 +53,6 @@
<xsl:param name="filename" select="'-'"/>
<!-- Defined variables (non-overrideable) -->
- <xsl:variable name="commentslink"><xsl:value-of
select="$relative-path"/>/comments.html</xsl:variable>
<xsl:variable name="project-xml-filename"><xsl:value-of
select="$subdir"/>project.xml</xsl:variable>
<xsl:variable name="project"
select="document($project-xml-filename)/project"/>
@@ -89,53 +88,6 @@
-->
<meta name="author" content="{$name}"/>
</xsl:for-each>
-
- <!-- Script for ASF Comments System. -->
- <!--
- Use data-* attributes for retrieval of XSLT-generated data
- in JavaScript.
- Use this approach rather than directly inserting text
- in a JS string literal as that would cause
- problems when the string contains special characters
- like ", ', \n etc.
- -->
- <xsl:variable name="comments-identifier">
- <xsl:value-of select="$sitedir"/><xsl:value-of
select="$subdir"/><xsl:value-of
select="substring($filename,1,string-length($filename)-4)"/>
- </xsl:variable>
- <xsl:if test="not(properties/no-comments)">
- <script type="application/javascript"
- data-comments-identifier="{$comments-identifier}"><![CDATA[
- "use strict"; // Enable strict mode
-
- (function() {
- var thisScript = document.currentScript;
- if (!thisScript) { // Workaround for IE <= 11
- var scripts = document.getElementsByTagName("script");
- thisScript = scripts[scripts.length - 1];
- }
- document.addEventListener("DOMContentLoaded", (function() {
- var commentsDiv = document.getElementById("comments_thread");
- var commentsShortname = "tomcat";
- var commentsIdentifier = "https://tomcat.apache.org/" +
- thisScript.getAttribute("data-comments-identifier") + ".html";
-
- (function(w, d) {
- if (w.location.hostname.toLowerCase() == "tomcat.apache.org") {
- var s = d.createElement("script");
- s.type = "application/javascript";
- s.async = true;
- s.src = "https://comments.apache.org/show_comments.lua?site=" +
- encodeURIComponent(commentsShortname) +
- "&page=" + encodeURIComponent(commentsIdentifier);
- d.head.appendChild(s);
- } else {
- commentsDiv.appendChild(d.createTextNode("Comments are disabled
for this page at the moment."));
- }
- })(window, document);
- }), false);
- })();
- ]]></script>
- </xsl:if>
</head>
<body>
@@ -184,34 +136,8 @@
<div id="mainRight">
<div id="content">
<!-- Main Part -->
- <h2><xsl:value-of select="properties/title"/></h2>
- <xsl:apply-templates select="body/section"/>
-
- <!-- Comments Section -->
- <xsl:if test="not(properties/no-comments)">
- <div class="noprint">
- <h3 id="comments_section">
- Comments
- </h3>
-
- <div class="text">
- <p class="notice">
- <strong>Notice:</strong> This comments section collects
your suggestions
- on improving documentation for Apache Tomcat.<br/><br/>
- If you have trouble and need help, read
- <a href="https://tomcat.apache.org/findhelp.html">Find
Help</a> page
- and ask your question on the tomcat-users
- <a href="https://tomcat.apache.org/lists.html">mailing
list</a>.
- Do not ask such questions here. This is not a Q&A
section.<br/><br/>
- The Apache Comments System is explained <a
href="{$commentslink}">here</a>.
- Comments may be removed by our moderators if they are
either
- implemented or considered invalid/off-topic.
- </p>
- <div id="comments_thread"/>
- </div>
- </div>
- </xsl:if>
-
+ <h2><xsl:value-of select="properties/title"/></h2>
+ <xsl:apply-templates select="body/section"/>
</div>
</div>
</div>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]