Update Cordova documentation (9.0.0)

pull/1089/head
Jasper van Merle 5 years ago
parent 811c9b0204
commit 0aa78305d8

@ -193,7 +193,7 @@ credits = [
'https://raw.githubusercontent.com/composer/composer/master/LICENSE'
], [
'Cordova',
'2012-2018 The Apache Software Foundation',
'2012, 2013, 2015 The Apache Software Foundation',
'Apache',
'https://raw.githubusercontent.com/apache/cordova-docs/master/LICENSE'
], [

@ -3,7 +3,7 @@ module Docs
class EntriesFilter < Docs::EntriesFilter
def get_name
return 'CLI' if slug == 'reference/cordova-cli/index'
name = at_css('#page-toc-source h1').content.strip
name = at_css('#page-toc-source').at_css('h1, h2').content.strip
name.remove! ' Guide'
name
end

@ -5,7 +5,7 @@ module Docs
self.root_path = 'guide/overview/index.html'
self.links = {
home: 'https://cordova.apache.org/',
code: 'https://git-wip-us.apache.org/repos/asf/cordova-cli.git'
code: 'https://github.com/apache/cordova'
}
html_filters.push 'cordova/entries', 'cordova/clean_html'
@ -24,23 +24,28 @@ module Docs
end
options[:attribution] = <<-HTML
&copy; 2012&ndash;2018 The Apache Software Foundation<br>
&copy; 2012, 2013, 2015 The Apache Software Foundation<br>
Licensed under the Apache License 2.0.
HTML
version '9' do
self.release = '9.0.0'
self.base_url = "https://cordova.apache.org/docs/en/#{self.version}.x/"
end
version '8' do
self.release = '8.1.2'
self.base_url = 'https://cordova.apache.org/docs/en/8.x/'
self.base_url = "https://cordova.apache.org/docs/en/#{self.version}.x/"
end
version '7' do
self.release = '7.1.0'
self.base_url = 'https://cordova.apache.org/docs/en/7.x/'
self.base_url = "https://cordova.apache.org/docs/en/#{self.version}.x/"
end
version '6' do
self.release = '6.5.0'
self.base_url = 'https://cordova.apache.org/docs/en/6.x/'
self.base_url = "https://cordova.apache.org/docs/en/#{self.version}.x/"
end
def get_latest_version(opts)

Loading…
Cancel
Save