You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
module Docs
|
|
|
|
class Moment < UrlScraper
|
|
|
|
self.name = 'Moment.js'
|
|
|
|
self.slug = 'moment'
|
|
|
|
self.type = 'moment'
|
|
|
|
self.release = '2.18.1'
|
|
|
|
self.base_url = 'http://momentjs.com'
|
|
|
|
self.root_path = '/docs/'
|
|
|
|
self.initial_paths = %w(/guides/)
|
|
|
|
self.links = {
|
|
|
|
home: 'http://momentjs.com/',
|
|
|
|
code: 'https://github.com/moment/moment/'
|
|
|
|
}
|
|
|
|
|
|
|
|
html_filters.push 'moment/clean_html', 'moment/entries', 'title'
|
|
|
|
|
|
|
|
options[:title] = 'Moment.js'
|
|
|
|
options[:container] = '.docs-content'
|
|
|
|
options[:skip_links] = true
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© JS Foundation and other contributors<br>
|
|
|
|
Licensed under the MIT License.
|
|
|
|
HTML
|
|
|
|
end
|
|
|
|
end
|