Changes between Version 21 and Version 22 of GoogleSitemapPlugin
- Timestamp:
- Aug 6, 2015, 1:00:05 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GoogleSitemapPlugin
v21 v22 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 = Google sitemap generator =3 2 4 == Description == 5 This plugin will produce a site maps XML file suitable 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's suitable for dynamic sites with lots of different URLs for basically the same content. 3 = Google sitemap generator 6 4 7 The maintainer-ship of this plugin for Trac 0.11+ was taken over by [wiki:martin_s] in May 2010. The new Trac 0.11 version was written from scratch, mainly because of great API changes between the Trac versions. 8 This wiki now describes only the 0.11 (and newer branches in the future). The old [./GoogleSitemapPlugin?version=10 description for the 0.10 branch] is also available. 5 == Description 6 7 This plugin produces a site map XML file suitable 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. 9 8 10 9 The 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). … … 13 12 '''Fork:''' I have made a small [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]. 14 13 15 == Installation == 14 The maintainer-ship of this plugin for Trac 0.11+ was taken over by [wiki:martin_s] in May 2010. The new Trac 0.11 version was written from scratch, mainly because of the API changes between the Trac versions. 15 This wiki now describes only the Trac 0.11 (and newer branches in the future). The old [./GoogleSitemapPlugin?version=10 description for the 0.10 branch] is also available. 16 17 == Bugs/Feature Requests 18 19 See [query:status!=closed&component=GoogleSitemapPlugin&order=priority existing bugs and feature requests], and feel free to create a [/newticket?component=GoogleSitemapPlugin&version=0.11 new ticket]. 20 21 [[TicketQuery(component=GoogleSitemapPlugin&group=type,format=progress)]] 22 23 == Download 24 25 Download the zipped source from [download:googlesitemapplugin here]. 26 27 == Source 28 29 You can check out GoogleMapMacro for Trac 0.11 from [http://trac-hacks.org/svn/googlesitemapplugin/0.11 here] using Subversion, or [source:googlesitemapplugin/0.11 browse the source] with Trac. 30 31 == Installation 32 16 33 Download the source code into a directory of your choice, open a command line terminal and run this command: 17 {{{ 34 {{{#!sh 18 35 python setup.py install 19 36 }}} 20 37 21 38 or use `easy_install` either on the downloaded source code or the SVN URL: 22 {{{ 39 {{{#!sh 23 40 easy_install <downloaded zip file or dir> 24 41 # or … … 26 43 }}} 27 44 28 Activate the plugin and, optionally, the automatic notification in your Trac environment by adding this line to the section [component] of `<your trac installation dir>/conf/trac.ini` or use the IniAdminPlugin: 29 {{{ 45 Activate the plugin and, optionally, the automatic notification in your Trac environment by adding this line to the section [components] of `<your trac installation dir>/conf/trac.ini` or use the IniAdminPlugin: 46 {{{#!ini 47 [components] 30 48 tracgooglesitemap.plugin = enabled 31 49 tracgooglesitemap.notify = enabled # optional, notifies Google to reload the sitemap when content has changed … … 34 52 Restart your web- or trac-server. 35 53 36 == Configuration == 54 == Configuration 55 37 56 The following options are supported. They must be placed under a `[googlesitemap]` section in the configuration file. 38 57 39 sitemappath:: Path of the sitemap relative to the main URL. Default: '`sitemap.xml`'.40 41 42 43 44 45 58 sitemappath:: Path of the sitemap relative to the main URL. Default: `sitemap.xml`. 59 ignore_users:: Do not include wiki pages created by the listed users. Default: `trac` (excludes all standard Trac wiki pages). 60 ignore_wikis:: Do not include the following wikis. The wildcards '`*`' and '`?`' are allowed and have there usual meaning. 61 list_realms:: Which realms (i.e. `wiki` or `ticket`) to list. Default: `wiki,ticket`. 62 change_frequency:: Change frequency for all entries. Valid values: always, hourly, daily, weekly, monthly, yearly, never. Disabled if empty (default). 63 compress_sitemap:: Compress sitemap, either by using HTTP gzip `content-encoding` if the client supports it (Googlebot does) or by requesting the sitemap with a trailing `.gz`. 64 compression_level:: Compression level used: 0 (low/fast) to 9 (high/slow). Default: 6. 46 65 47 66 The notifier can be told on which action Google should be notified about the sitemap change: 48 67 49 68 notifyon:: List of actions on which Google should be notified. The action names are based on the Trac permissions needed to execute the actions. 50 69 Supported actions are: TICKET_CREATE, TICKET_DELETE, TICKET_MODIFY, WIKI_CREATE, WIKI_DELETE, WIKI_VERSION_DELETE, WIKI_MODIFY, WIKI_RENAME. 51 70 By default Google will be notified when a ticket or wiki is created or modified, but not when it is deleted. 52 71 Default: TICKET_CREATE, TICKET_MODIFY, WIKI_CREATE, WIKI_VERSION_DELETE, WIKI_MODIFY, WIKI_RENAME. 53 72 54 55 56 == Bugs/Feature Requests == 57 58 See [query:status!=closed&component=GoogleSitemapPlugin&order=priority existing bugs and feature requests], and feel free to create a [/newticket?component=GoogleSitemapPlugin&owner=martin_s&version=0.11 new ticket]. 59 60 == Download == 61 62 Download the zipped source from [download:googlesitemapplugin here]. 63 64 == Source == 65 66 You can check out GoogleMapMacro for Trac 0.11 from [http://trac-hacks.org/svn/googlesitemapplugin/0.11 here] using Subversion, or [source:googlesitemapplugin/0.11 browse the source] with Trac. 67 68 == Example == 73 == Example 69 74 70 75 This is how a sitemap XML could look like: 71 76 72 {{{ 73 #!xml 77 {{{#!xml 74 78 <?xml version="1.0" encoding="UTF-8"?> 75 79 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" … … 91 95 More about the document format can be found [https://www.google.com/webmasters/sitemaps/docs/en/protocol.html here]. 92 96 93 == Recent Changes ==97 == Recent Changes 94 98 95 99 [[ChangeLog(googlesitemapplugin, 3)]] 96 100 97 == Author/Contributors ==101 == Author/Contributors 98 102 99 103 '''Author:''' [wiki:martin_s] (Trac 0.11), [wiki:datenimperator] (Trac 0.10) [[BR]] 100 '''Maintainer:''' [ wiki:martin_s] [[BR]]104 '''Maintainer:''' [[Maintainer]] [[BR]] 101 105 '''Contributors:'''