spree_sitemap_generator/README.md

63 lines
1.8 KiB
Markdown
Raw Normal View History

2011-01-06 11:19:57 +00:00
Spree Sitemap Generator
=====================
Spree sitemap generator is a sitemap generator based on the sitemap_generator gem http://github.com/kjvarga/sitemap_generator. It adheres to the Sitemap 0.9 protocol specification.
2011-01-06 11:19:57 +00:00
Installation
=======
2011-10-23 22:30:29 +00:00
1) add the gem to your `Gemfile`:
2011-01-06 11:19:57 +00:00
2011-10-23 22:30:29 +00:00
`gem 'spree_sitemap_generator'`
2011-01-06 11:19:57 +00:00
2011-10-23 22:30:29 +00:00
2) run bundler:
2011-01-06 11:19:57 +00:00
2011-10-23 22:30:29 +00:00
`bundle install`
3) run the installer, it will create a `config/sitemap.rb` file with some sane defaults
2011-10-23 22:30:29 +00:00
`rails generate spree_sitemap_generator:install`
2011-10-23 22:30:29 +00:00
4) add sitemap to your `.gitignore`
`echo "public/sitemap*" >> .gitignore`
2011-10-24 00:21:02 +00:00
5) setup a daily cron job to regenrate your sitemap via the `rake sitemap:refresh` task. If you use the Whenever gem, add this to your `config/schedule.rb`
```
every 1.day, :at => '5:00 am' do
rake "-s sitemap:refresh"
end
```
2011-10-24 00:21:02 +00:00
6) make sure crawlers can find the sitemap, by adding the following line to your `public/robots.txt` with your correct domain name
`echo "Sitemap: http://www.example.com/sitemap_index.xml.gz" >> public/robots.txt`
7) BOOM you're done!
More Configuration Options
==========================
Check out the README for the sitemap_generator gem at:
http://github.com/kjvarga/sitemap_generator
2011-01-06 11:19:57 +00:00
Features
=====
- Notifies search engine of new sitemaps (Google, Yahoo, Ask, Bing)
- Supports large huge product catalogs
- Adheres to 0.9 Sitemap protocol specification
2011-01-06 11:19:57 +00:00
- Compresses sitemaps with gzip
- Provides basic sitemap of a Spree site (products, taxons, login page, signup page)
- Easily add additional sitemaps for pages you add to your spree site
- Supports Amazon S3 and other hosting services
- Thin wrapper over battle tested sitemap generator
2011-01-06 11:19:57 +00:00
Special Thanks
=====
- The creators of the sitemap_generator gem
2011-10-24 00:21:02 +00:00
- jackkinsella
2011-01-06 11:19:57 +00:00
2011-10-23 22:30:29 +00:00
Copyright (c) 2011 Joshua Nussbaum, released under the New BSD License