mirror of https://github.com/freeCodeCamp/devdocs
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.
25 lines
731 B
25 lines
731 B
module Docs
|
|
class Cordova < UrlScraper
|
|
self.name = 'Cordova'
|
|
self.type = 'cordova'
|
|
self.release = '6.0.0'
|
|
self.base_url = "https://cordova.apache.org/docs/en/#{release}/"
|
|
self.root_path = 'index.html'
|
|
self.links = {
|
|
home: 'https://cordova.apache.org/'
|
|
}
|
|
|
|
html_filters.push 'cordova/clean_html', 'cordova/entries', 'title'
|
|
|
|
options[:container] = ->(filter) { filter.root_page? ? '#home' : '#page-toc-source' }
|
|
options[:title] = false
|
|
options[:root_title] = 'Apache Cordova'
|
|
options[:skip] = %w(page_index.html)
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2012–2016 The Apache Software Foundation<br>
|
|
Licensed under the Apache License 2.0.
|
|
HTML
|
|
end
|
|
end
|