1
0

moment.rb 611 B

12345678910111213141516171819202122
  1. module Docs
  2. class Moment < UrlScraper
  3. self.name = 'Moment.js'
  4. self.slug = 'moment'
  5. self.type = 'moment'
  6. self.release = '2.17.0'
  7. self.base_url = 'http://momentjs.com'
  8. self.root_path = '/docs/'
  9. self.initial_paths = %w(/guides/)
  10. html_filters.push 'moment/clean_html', 'moment/entries', 'title'
  11. options[:title] = 'Moment.js'
  12. options[:container] = '.docs-content'
  13. options[:skip_links] = true
  14. options[:attribution] = <<-HTML
  15. &copy; 2011&ndash;2016 Tim Wood, Iskren Chernev, Moment.js contributors<br>
  16. Licensed under the MIT License.
  17. HTML
  18. end
  19. end