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 Cordova < UrlScraper
|
|
|
|
self.name = 'Cordova'
|
|
|
|
self.type = 'cordova'
|
|
|
|
self.root_path = 'guide/overview/index.html'
|
|
|
|
self.links = {
|
|
|
|
home: 'https://cordova.apache.org/'
|
|
|
|
}
|
|
|
|
|
|
|
|
html_filters.push 'cordova/entries', 'cordova/clean_html'
|
|
|
|
|
|
|
|
options[:container] = '.docs'
|
|
|
|
options[:skip] = %w(index.html)
|
|
|
|
|
|
|
|
options[:fix_urls] = ->(url) do
|
|
|
|
if url.include?('https://cordova.apache.org/docs') && !url.end_with?('.html')
|
|
|
|
if url.end_with?('/')
|
|
|
|
url << 'index.html'
|
|
|
|
else
|
|
|
|
url << '/index.html'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 2012–2016 The Apache Software Foundation<br>
|
|
|
|
Licensed under the Apache License 2.0.
|
|
|
|
HTML
|
|
|
|
|
|
|
|
version '6' do
|
|
|
|
self.release = '6.3.1'
|
|
|
|
self.base_url = 'https://cordova.apache.org/docs/en/6.x/'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|