This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat-connectors.git
commit d37352d7cf68a187e6c7f5c9c14b788a91126db9 Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Mar 9 09:25:29 2020 +0000 Drop comments sections. comments.a.o no longer exists. --- xdocs/tomcat-docs.xsl | 73 --------------------------------------------------- 1 file changed, 73 deletions(-) diff --git a/xdocs/tomcat-docs.xsl b/xdocs/tomcat-docs.xsl index 968e18a..828178c 100644 --- a/xdocs/tomcat-docs.xsl +++ b/xdocs/tomcat-docs.xsl @@ -52,7 +52,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,52 +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> @@ -187,32 +140,6 @@ <!-- 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> - </div> </div> </div> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org