1
0

mongoose.rb 697 B

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