Version 8 (modified by anonymous, 7 years ago) (diff)


Google sitemap generator


This plugin will handle requests of the URL /sitemap.xml and will produce XML suitable for submission to the 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's suitable for dynamic sites with lots of different URLs for basically the same content.

The plugin will notify Google by sending a PING request to their site whenever content on your trac has changed. For now, wiki pages are supported in the sitemap, but tickets will eventually follow.


The plugin was tested with Python 2.4 but should work with 2.3 as well. It uses API extensions of trac 0.10, so it wouldn't run with older versions of trac. Furthermore, you need setuptools to install and run the extension.

If the webadmin plugin is installed, this plugin will register a page to configure it.


Download the source code into a directory of your choice, open a command line terminal and run this command:

python install

Activate the plugin in your trac environment by adding this line to the section [component] of trac.ini

sitemap.* = enabled

Restart your webserver.

Bugs/Feature Requests

See existing bugs and feature requests, and feel free to create a new ticket.

Download and Source

Download the egg from here and place it in the Trac plugins directory, e.g. /usr/share/trac/plugins.

Note: At this time (2008-05-11), the pages where this plugin was hosted no longer exist. A snapshot of this plugin's source code is attached to this page as attachment:sitemap-0.1dev_r18-py2.5.egg.tar.gz.

Check out using Subversion, Visit to browse the source code.


This is how a sitemap XML could look like:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="">

More about the document format can be found here.

Recent Changes

[9514] by martin_s on 2010-11-24 21:42:18
Added missing else clause for _fixtime method. This should fix #8152.
[8547] by martin_s on 2010-08-30 23:57:39
Added encoding meta-comment and declared SVN keywords as unicode to avoid issues with non-english locales.
[8422] by martin_s on 2010-08-23 13:11:45
Removed outdated variable rev from setup file.


Author: datenimperator