grunt.rb 913 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. module Docs
  2. class Grunt < UrlScraper
  3. self.name = 'Grunt'
  4. self.type = 'simple'
  5. self.release = '1.4.2'
  6. self.base_url = 'https://gruntjs.com/'
  7. self.root_path = 'getting-started'
  8. self.initial_paths = %w(api/grunt)
  9. self.links = {
  10. home: 'https://gruntjs.com/',
  11. code: 'https://github.com/gruntjs/grunt'
  12. }
  13. html_filters.push 'grunt/clean_html', 'grunt/entries'
  14. options[:only] = %w(
  15. configuring-tasks
  16. sample-gruntfile
  17. creating-tasks
  18. creating-plugins
  19. using-the-cli
  20. installing-grunt
  21. project-scaffolding
  22. )
  23. options[:only_patterns] = [/\Aapi\//, /\Aupgrading-/]
  24. options[:container] = '.container > .row-fluid'
  25. options[:attribution] = <<-HTML
  26. &copy; GruntJS Team<br>
  27. Licensed under the MIT License.
  28. HTML
  29. def get_latest_version(opts)
  30. get_npm_version('grunt-cli', opts)
  31. end
  32. end
  33. end