grunt.rb 635 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Grunt < UrlScraper
  3. self.name = 'Grunt'
  4. self.type = 'grunt'
  5. self.version = '0.4.5'
  6. self.base_url = 'http://gruntjs.com/'
  7. self.root_path = 'getting-started'
  8. self.initial_paths = %w(api/grunt)
  9. html_filters.push 'grunt/clean_html', 'grunt/entries'
  10. options[:only] = %w(
  11. configuring-tasks
  12. sample-gruntfile
  13. creating-tasks
  14. using-the-cli
  15. )
  16. options[:only_patterns] = [/\Aapi\//]
  17. options[:container] = '.container > .row-fluid'
  18. options[:attribution] = <<-HTML
  19. &copy; 2014 Grunt Team<br>
  20. Licensed under the MIT License.
  21. HTML
  22. end
  23. end