Index: app/controllers/robots_controller.rb
===================================================================
--- app/controllers/robots_controller.rb	(révision 0)
+++ app/controllers/robots_controller.rb	(révision 0)
@@ -0,0 +1,8 @@
+class RobotsController < ApplicationController
+
+  def sitemaps
+    @projects = Project.all
+    render :layout => false, :content_type => 'text/plain'
+  end
+end
+            
\ No newline at end of file
Index: app/views/robots/sitemaps.rhtml
===================================================================
--- app/views/robots/sitemaps.rhtml	(révision 0)
+++ app/views/robots/sitemaps.rhtml	(révision 0)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+<%
+@projects.each do |p|
+  if p.wiki != nil
+    p.wiki.pages.each do |wp|
+-%>
+   <url>
+      <loc><%= url_for(:controller => 'wiki', :only_path => false) + "/#{p.identifier}/#{wp.title}" -%></loc>
+      <lastmod><%= wp.content.updated_on.strftime("%Y-%m-%d") -%></lastmod>
+   </url>
+<%
+    end
+  end
+end -%>
+</urlset> 
Index: config/routes.rb
===================================================================
--- config/routes.rb	(révision 2343)
+++ config/routes.rb	(copie de travail)
@@ -48,5 +48,6 @@
  
   # Install the default route as the lowest priority.
   map.connect ':controller/:action/:id'
   map.connect 'robots.txt', :controller => 'welcome', :action => 'robots'
+  map.connect 'sitemaps.xml', :controller => 'robots', :action => 'sitemaps'
 end
