Changes between Version 25 and Version 26 of GoogleSitemapPlugin


Ignore:
Timestamp:
Oct 4, 2017, 8:50:16 AM (7 years ago)
Author:
figaro
Comment:

Moved example to description

Legend:

Unmodified
Added
Removed
Modified
  • GoogleSitemapPlugin

    v25 v26  
    55== Description
    66
    7 This plugin produces a site map XML file for submission to the [https://www.google.com/webmasters/sitemaps/docs/en/about.html Google sitemap service]. The sitemap is a way to describe your site's content other than depending on a crawler that follows every link. It is suitable for dynamic sites with lots of different URLs for basically the same content.
     7This plugin produces a site map XML file for submission to the [https://www.google.com/webmasters/sitemaps/docs/en/about.html Google sitemap service]. The sitemap is a way to describe your site's content other than depending on a crawler that follows every link. It is suitable for dynamic sites with lots of different URLs for basically the same content and it allows your web site to be found better and searched better.
    88
    99The plugin can be configured to notify Google by sending a PING request to their site when content on your Trac has changed (Trac 0.10 version only).
    1010For now, wiki pages and tickets are supported in the sitemap. Other things like source code and pages produced by other plugins could also be included.
     11
     12This is what a sample sitemap XML could look like:
     13
     14{{{#!xml
     15<?xml version="1.0" encoding="UTF-8"?>
     16<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
     17        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     18        xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
     19<url>
     20   <loc>http://yourtracurl/tracproject/wiki/WikiStart</loc>
     21   <lastmod>2010-11-07T15:37:07Z</lastmod>
     22   <changefreq>daily</changefreq>
     23</url>
     24<url>
     25   <loc>http://yourtracurl/tracproject/wiki/SomePage</loc>
     26   <lastmod>2010-11-07T16:22:35Z</lastmod>
     27   <changefreq>daily</changefreq>
     28</url>
     29</urlset>
     30}}}
     31
     32More about the document format can be found [https://www.google.com/webmasters/sitemaps/docs/en/protocol.html here].
    1133
    1234'''Fork:''' I have made a [https://github.com/trac-hacks/trac-googlesitemapplugin fork on GitHub] with some improvements/fixes. Feel free to [https://github.com/trac-hacks/trac-googlesitemapplugin/issues suggest new features].
     
    5476}}}
    5577
    56 Restart your web server or Trac server.
     78Restart your web server or Trac server:
     79{{{#!sh
     80$ trac-admin /path/to/env deploy /deploy/path
     81}}}
    5782
    5883== Configuration
     
    75100               Default: TICKET_CREATE, TICKET_MODIFY, WIKI_CREATE, WIKI_VERSION_DELETE, WIKI_MODIFY, WIKI_RENAME.
    76101
    77 == Example
    78 
    79 This is what a sample sitemap XML could look like:
    80 
    81 {{{#!xml
    82 <?xml version="1.0" encoding="UTF-8"?>
    83 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
    84         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    85         xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
    86 <url>
    87    <loc>http://yourtracurl/tracproject/wiki/WikiStart</loc>
    88    <lastmod>2010-11-07T15:37:07Z</lastmod>
    89    <changefreq>daily</changefreq>
    90 </url>
    91 <url>
    92    <loc>http://yourtracurl/tracproject/wiki/SomePage</loc>
    93    <lastmod>2010-11-07T16:22:35Z</lastmod>
    94    <changefreq>daily</changefreq>
    95 </url>
    96 </urlset>
    97 }}}
    98 
    99 More about the document format can be found [https://www.google.com/webmasters/sitemaps/docs/en/protocol.html here].
    100 
    101102== Recent Changes
    102103