You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2012/01/21 20:38:54 UTC

svn commit: r1234404 - in /tomcat/site/trunk: build.xml docs/sitemap-main.xml docs/sitemap.xml xdocs/robots.txt xdocs/sitemap-main.xml xdocs/sitemap.xml

Author: markt
Date: Sat Jan 21 19:38:54 2012
New Revision: 1234404

URL: http://svn.apache.org/viewvc?rev=1234404&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=52235
Apply some SEO love to the website.
Patch provided by pid (with some minor tweaks)

Added:
    tomcat/site/trunk/docs/sitemap-main.xml   (with props)
    tomcat/site/trunk/docs/sitemap.xml   (with props)
    tomcat/site/trunk/xdocs/sitemap-main.xml   (with props)
    tomcat/site/trunk/xdocs/sitemap.xml   (with props)
Modified:
    tomcat/site/trunk/build.xml
    tomcat/site/trunk/xdocs/robots.txt

Modified: tomcat/site/trunk/build.xml
URL: http://svn.apache.org/viewvc/tomcat/site/trunk/build.xml?rev=1234404&r1=1234403&r2=1234404&view=diff
==============================================================================
--- tomcat/site/trunk/build.xml (original)
+++ tomcat/site/trunk/build.xml Sat Jan 21 19:38:54 2012
@@ -26,12 +26,20 @@
                 destdir="${docs.dest}"
                 extension=".html"
                 style="${docs.src}/stylesheets/tomcat-site.xsl"
-                excludes="project.xml"
+                excludes="project.xml,sitemap.xml,sitemap-main.xml"
                 includes="*.xml"
         	    force="${force}">
             <param name="relative-path" expression="."/>
         </xslt>
 
+        <!-- Copy static sitemap files -->
+        <echo message="Copying sitemap files..." />
+        <copy todir="${docs.dest}" filtering="no" overwrite="${force}">
+            <fileset dir="${docs.src}">
+                <include name="sitemap*.xml"/>
+            </fileset>
+        </copy>
+    		
         <!-- Copy static resource files -->
         <echo message="Copying static resource files..." />
         <copy todir="${docs.dest}/images" filtering="no" overwrite="${force}">

Added: tomcat/site/trunk/docs/sitemap-main.xml
URL: http://svn.apache.org/viewvc/tomcat/site/trunk/docs/sitemap-main.xml?rev=1234404&view=auto
==============================================================================
--- tomcat/site/trunk/docs/sitemap-main.xml (added)
+++ tomcat/site/trunk/docs/sitemap-main.xml Sat Jan 21 19:38:54 2012
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+  <url>
+    <loc>http://tomcat.apache.org/</loc>
+    <changefreq>weekly</changefreq>
+    <priority>1.0</priority>
+  </url>
+
+  <!-- The version docs could be moved to their own index file -->
+  <url>
+    <loc>http://tomcat.apache.org/tomcat-7.0-doc/</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.8</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/whichversion.html</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.6</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/tomcat-6.0-doc/</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.6</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/tomcat-5.5-doc/</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.5</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/taglibs/</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.5</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/maven-plugin.html</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.5</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/connectors-doc/</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.5</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/native-doc/</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.5</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/security.html</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.4</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/findhelp.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.4</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/migration.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.3</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/bugreport.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.3</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/lists.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.3</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/irc.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.2</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/getinvolved.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.2</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/svn.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.2</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/ci.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.2</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/heritage.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.1</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/resources.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.1</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/oldnews.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.1</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/whoweare.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.1</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/legal.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.1</priority>
+  </url>
+</urlset>
\ No newline at end of file

Propchange: tomcat/site/trunk/docs/sitemap-main.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: tomcat/site/trunk/docs/sitemap.xml
URL: http://svn.apache.org/viewvc/tomcat/site/trunk/docs/sitemap.xml?rev=1234404&view=auto
==============================================================================
--- tomcat/site/trunk/docs/sitemap.xml (added)
+++ tomcat/site/trunk/docs/sitemap.xml Sat Jan 21 19:38:54 2012
@@ -0,0 +1,5 @@
+<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+  <sitemap>
+    <loc>http://tomcat.apache.org/sitemap-main.xml</loc>
+  </sitemap>
+</sitemapindex>
\ No newline at end of file

Propchange: tomcat/site/trunk/docs/sitemap.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: tomcat/site/trunk/xdocs/robots.txt
URL: http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/robots.txt?rev=1234404&r1=1234403&r2=1234404&view=diff
==============================================================================
--- tomcat/site/trunk/xdocs/robots.txt (original)
+++ tomcat/site/trunk/xdocs/robots.txt Sat Jan 21 19:38:54 2012
@@ -1,3 +1,2 @@
 User-agent: *
-Disallow: /websrc
-
+Sitemap: http://tomcat.apache.org/sitemap.xml

Added: tomcat/site/trunk/xdocs/sitemap-main.xml
URL: http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/sitemap-main.xml?rev=1234404&view=auto
==============================================================================
--- tomcat/site/trunk/xdocs/sitemap-main.xml (added)
+++ tomcat/site/trunk/xdocs/sitemap-main.xml Sat Jan 21 19:38:54 2012
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+  <url>
+    <loc>http://tomcat.apache.org/</loc>
+    <changefreq>weekly</changefreq>
+    <priority>1.0</priority>
+  </url>
+
+  <!-- The version docs could be moved to their own index file -->
+  <url>
+    <loc>http://tomcat.apache.org/tomcat-7.0-doc/</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.8</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/whichversion.html</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.6</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/tomcat-6.0-doc/</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.6</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/tomcat-5.5-doc/</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.5</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/taglibs/</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.5</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/maven-plugin.html</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.5</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/connectors-doc/</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.5</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/native-doc/</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.5</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/security.html</loc>
+    <changefreq>monthly</changefreq>
+    <priority>0.4</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/findhelp.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.4</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/migration.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.3</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/bugreport.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.3</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/lists.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.3</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/irc.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.2</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/getinvolved.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.2</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/svn.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.2</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/ci.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.2</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/heritage.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.1</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/resources.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.1</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/oldnews.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.1</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/whoweare.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.1</priority>
+  </url>
+  <url>
+    <loc>http://tomcat.apache.org/legal.html</loc>
+    <changefreq>weekly</changefreq>
+    <priority>0.1</priority>
+  </url>
+</urlset>
\ No newline at end of file

Propchange: tomcat/site/trunk/xdocs/sitemap-main.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: tomcat/site/trunk/xdocs/sitemap.xml
URL: http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/sitemap.xml?rev=1234404&view=auto
==============================================================================
--- tomcat/site/trunk/xdocs/sitemap.xml (added)
+++ tomcat/site/trunk/xdocs/sitemap.xml Sat Jan 21 19:38:54 2012
@@ -0,0 +1,5 @@
+<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+  <sitemap>
+    <loc>http://tomcat.apache.org/sitemap-main.xml</loc>
+  </sitemap>
+</sitemapindex>
\ No newline at end of file

Propchange: tomcat/site/trunk/xdocs/sitemap.xml
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org