devdocs/lib/docs/scrapers/q.rb

28 lines
689 B
Ruby
Raw Normal View History

2015-07-05 13:32:37 +02:00
module Docs
2016-02-28 18:07:06 +01:00
class Q < Github
2015-07-05 13:32:37 +02:00
self.name = 'Q'
2017-10-29 19:47:35 +01:00
self.release = '1.5.1'
2015-08-02 18:47:13 +02:00
self.base_url = 'https://github.com/kriskowal/q/wiki/'
self.root_path = 'API-Reference'
2015-07-05 13:32:37 +02:00
self.links = {
2015-08-02 18:47:13 +02:00
home: 'http://documentup.com/kriskowal/q/',
code: 'https://github.com/kriskowal/q'
2015-07-05 13:32:37 +02:00
}
2016-02-28 18:07:06 +01:00
html_filters.push 'q/entries', 'title'
2015-07-05 13:32:37 +02:00
2015-08-02 18:47:13 +02:00
options[:container] = '.markdown-body'
2015-07-05 13:32:37 +02:00
options[:title] = 'Q'
options[:skip_links] = true
options[:attribution] = <<-HTML
2017-03-25 17:05:21 +01:00
&copy; 2009&ndash;2017 Kristopher Michael Kowal<br>
2015-08-02 18:47:13 +02:00
Licensed under the MIT License.
2015-07-05 13:32:37 +02:00
HTML
def get_latest_version(options, &block)
get_npm_version('q', options, &block)
end
2015-07-05 13:32:37 +02:00
end
end