mongoose.rb 581 B

12345678910111213141516171819202122232425
  1. module Docs
  2. class Mongoose < UrlScraper
  3. self.name = 'Mongoose'
  4. self.type = 'mongoose'
  5. self.version = '3.8.19'
  6. self.base_url = 'http://mongoosejs.com/docs/'
  7. self.root_path = 'index.html'
  8. self.initial_paths = %w(guide.html api.html)
  9. html_filters.push 'mongoose/clean_html', 'mongoose/entries'
  10. options[:container] = '#content'
  11. options[:skip] = %w(
  12. faq.html
  13. prior.html
  14. migration.html
  15. plugins)
  16. options[:attribution] = <<-HTML
  17. &copy; 2010 LearnBoost<br>
  18. Licensed under the MIT License.
  19. HTML
  20. end
  21. end