Edgewall Software
Modify

Opened 19 years ago

Closed 6 years ago

Last modified 6 years ago

#1880 closed enhancement (wontfix)

Support for Google Sitemaps

Reported by: Martijn Pieters <mj@…> Owned by:
Priority: normal Milestone:
Component: general Version: devel
Severity: normal Keywords:
Cc: ufs@…, werdlerk@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Google can index websites more efficiently and more frequently when a site provides information about the site in the form of a Google Sitemap; a centralized description of site content including information about change frequency and last update time.

Trac already has such information at the ready; all it needs to provide is the XML file itself and perhaps offer a few other niceties such as a sitemap index and automatic resubmission when pages change.

Trac could be extended to provide the following features:

Sitemap

http://www.google.com/webmasters/sitemaps/docs/en/protocol.html

The sitemap lists every wiki page, roadmap milestone, changeset and ticket, with last-modification date. Perhaps the homepage of a trac project can be marked with a higher priority, and changesets can be marked with a changefreq tag set to 'never', while the timeline could marked as changing 'always'.

The spec leaves it open an what URL to present the map; it needs to be registered explicitly with Google the first time. However, it may be that in the future the file will be autodiscovered much like robots.txt is; by trying the /sitemap.gz URL. As such Trac should probably offer the sitemap under that URL; gzipping the generated content is easy enough.

Sitemaps Index

http://www.google.com/webmasters/sitemaps/docs/en/protocol.html#sitemapLocation

In a multiproject configuration using TracModPython the ModPythonHandler could provide for a /sitemaps.gz URL that lists the sitemaps for all the Trac projects it knows about using a sitemapindex document.

Automatic resubmission

http://www.google.com/webmasters/sitemaps/docs/en/submit.html#ping

Google allows for automatic notification of changes to sitemaps using a very simple HTTP GET API. Trac could automatically call this API whenever it learns of a change (wiki edits, ticket activity, etc.). This should be configurable, defaulting to 'off' as sitemaps have to be registered explicitly first (although there is no penalty for calling the API without having registered).

Attachments (0)

Change History (9)

comment:1 by Pedro Algarvio <ufs@…>, 18 years ago

Cc: ufs@… added

comment:2 by Pedro Algarvio <ufs@…>, 18 years ago

Milestone: 1.0
Version: 0.8.4devel

I was going to ask about robots.txt, and then I found this ticket.

Guess this is the way to go.

I'm listening.

comment:3 by Koen Werdler <werdlerk@…>, 17 years ago

Cc: werdlerk@… added

comment:4 by Koen Werdler <werdlerk@…>, 17 years ago

This plugin made by datenimperator creates a sitemap.xml: http://www.trac-hacks.org/wiki/GoogleSitemapPlugin

I'm not sure if this is the most recent version since the developer has his own repository at his own website - http://voidblog.de/wiki/GoogleSitemap .

comment:5 by Koen Werdler <werdlerk@…>, 17 years ago

Correction; the links on trac-hacks.org already point to his own site.

comment:6 by Christian Boos, 14 years ago

Milestone: 1.0unscheduled

Milestone 1.0 deleted

comment:7 by Ryan J Ollos, 9 years ago

Owner: Jonas Borgström removed

comment:8 by figaro, 7 years ago

See GoogleSitemapPlugin at trac-hacks.

comment:9 by Ryan J Ollos, 6 years ago

Milestone: unscheduled
Resolution: wontfix
Status: newclosed

If someone wishes to contribute a sitemap we can place it in /contrib.

Last edited 6 years ago by Ryan J Ollos (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.