README.markdown in crawlable-0.0.1.5 vs README.markdown in crawlable-0.0.1.6

- old
+ new

@@ -6,23 +6,75 @@ ### Install sudo gem install crawlable -### Setup (config/sitemap.rb) +### Sitemap (`config/sitemap.rb`) - Sitemap do |sitemap| + Sitemap "http://www.example.com" do + link articles_path, :priority => 0.7, :changes => 'daily' + + Post.all.each do |a| + link articles_path(a), :updated_at => a.updated_at do + image images_path(a.featured_image) + end + end + end + +#### Result - sitemap.add posts_path, :priority => 1, :changes => 'daily' + <?xml version="1.0"?> + <urlset> + <url> + <loc>/articles</loc> + <lastmod>2010-06-20T09:38:26+00:00</lastmod> + <changefreq>daily</changefreq> + <priority>0.7</priority> + </url> + <url> + <loc>/articles/title-0</loc> + <lastmod>2010-06-20T09:38:26+00:00</lastmod> + <changefreq>weekly</changefreq> + <priority>0.5</priority> + </url> + <url> + <loc>/articles/title-1</loc> + <lastmod>2010-06-20T09:38:26+00:00</lastmod> + <changefreq>weekly</changefreq> + <priority>0.5</priority> + </url> + ... + </urlset> + +### Feed - Post.all.each do |post| - sitemap.add posts_path(post), :last_modified => post.updated_at + Feed do + title "My RSS Feed" + author "Lance Pollard" + description "Something nice and tidy" + + Post.all.each do |a| + entry "/posts/#{a.to_param}", :updated_at => a.updated_at, :title => a.title end - end ## Features - Works on Heroku +- Pings Google, Bing, Yahoo!, and Ask whenever anything changes ## Alternatives +- [SitemapGenerator](http://github.com/kjvarga/sitemap_generator) +- [Sitemap](http://github.com/queso/sitemap) +- [BigSitemap](http://github.com/alexrabarts/big_sitemap) +- [Sitemap (diff than above)](http://github.com/flyerhzm/sitemap) +- [SitemapGenerator (diff than above)](http://github.com/christianhellsten/sitemap-generator) +- [Sitemapper](http://github.com/milk-it/sitemapper) + +## Resources + +- [Official Sitemap Protocol](http://sitemaps.org/protocol.php) +- [Official RSS Feed Spec](http://cyber.law.harvard.edu/rss/rss.html) +- [Sitemap Engine List](http://en.wikipedia.org/wiki/Sitemap_index) +- [Yahoo Site Explorer](http://developer.yahoo.com/search/siteexplorer/V1/updateNotification.html) +- [Comparison of Feed Aggregators](http://en.wikipedia.org/wiki/Comparison_of_feed_aggregators) \ No newline at end of file