mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
38 lines
913 B
Ruby
38 lines
913 B
Ruby
module Docs
|
|
class Grunt < UrlScraper
|
|
self.name = 'Grunt'
|
|
self.type = 'simple'
|
|
self.release = '1.4.2'
|
|
self.base_url = 'https://gruntjs.com/'
|
|
self.root_path = 'getting-started'
|
|
self.initial_paths = %w(api/grunt)
|
|
self.links = {
|
|
home: 'https://gruntjs.com/',
|
|
code: 'https://github.com/gruntjs/grunt'
|
|
}
|
|
|
|
html_filters.push 'grunt/clean_html', 'grunt/entries'
|
|
|
|
options[:only] = %w(
|
|
configuring-tasks
|
|
sample-gruntfile
|
|
creating-tasks
|
|
creating-plugins
|
|
using-the-cli
|
|
installing-grunt
|
|
project-scaffolding
|
|
)
|
|
options[:only_patterns] = [/\Aapi\//, /\Aupgrading-/]
|
|
|
|
options[:container] = '.container > .row-fluid'
|
|
|
|
options[:attribution] = <<-HTML
|
|
© GruntJS Team<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
get_npm_version('grunt-cli', opts)
|
|
end
|
|
end
|
|
end
|