2014-05-04 01:32:55 +02:00
|
|
|
module Docs
|
|
|
|
class Grunt < UrlScraper
|
|
|
|
self.name = 'Grunt'
|
2018-10-07 17:07:55 +02:00
|
|
|
self.type = 'simple'
|
2024-08-18 12:06:13 +02:00
|
|
|
self.release = '1.5.0'
|
2017-07-22 18:16:43 +02:00
|
|
|
self.base_url = 'https://gruntjs.com/'
|
2014-05-04 01:32:55 +02:00
|
|
|
self.root_path = 'getting-started'
|
|
|
|
self.initial_paths = %w(api/grunt)
|
2020-11-24 21:15:09 +01:00
|
|
|
self.links = {
|
|
|
|
home: 'https://gruntjs.com/',
|
|
|
|
code: 'https://github.com/gruntjs/grunt'
|
|
|
|
}
|
2014-05-04 01:32:55 +02:00
|
|
|
|
|
|
|
html_filters.push 'grunt/clean_html', 'grunt/entries'
|
|
|
|
|
|
|
|
options[:only] = %w(
|
|
|
|
configuring-tasks
|
|
|
|
sample-gruntfile
|
|
|
|
creating-tasks
|
2016-04-09 14:36:01 +02:00
|
|
|
creating-plugins
|
2014-05-04 01:32:55 +02:00
|
|
|
using-the-cli
|
2016-04-09 14:36:01 +02:00
|
|
|
installing-grunt
|
|
|
|
project-scaffolding
|
2014-05-04 01:32:55 +02:00
|
|
|
)
|
2016-04-09 14:36:01 +02:00
|
|
|
options[:only_patterns] = [/\Aapi\//, /\Aupgrading-/]
|
2014-05-04 01:32:55 +02:00
|
|
|
|
|
|
|
options[:container] = '.container > .row-fluid'
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
2016-04-09 14:36:01 +02:00
|
|
|
© GruntJS Team<br>
|
2014-05-04 01:32:55 +02:00
|
|
|
Licensed under the MIT License.
|
|
|
|
HTML
|
2019-03-09 02:36:05 +01:00
|
|
|
|
2019-03-10 03:02:24 +01:00
|
|
|
def get_latest_version(opts)
|
|
|
|
get_npm_version('grunt-cli', opts)
|
2019-03-09 02:36:05 +01:00
|
|
|
end
|
2014-05-04 01:32:55 +02:00
|
|
|
end
|
|
|
|
end
|