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' 'https://raw.githubusercontent.com/composer/composer/master/LICENSE'
], [ ], [
'Cordova', 'Cordova',
'2012-2018 The Apache Software Foundation', '2012, 2013, 2015 The Apache Software Foundation',
'Apache', 'Apache',
'https://raw.githubusercontent.com/apache/cordova-docs/master/LICENSE' 'https://raw.githubusercontent.com/apache/cordova-docs/master/LICENSE'
], [ ], [

@ -3,7 +3,7 @@ module Docs
class EntriesFilter < Docs::EntriesFilter class EntriesFilter < Docs::EntriesFilter
def get_name def get_name
return 'CLI' if slug == 'reference/cordova-cli/index' 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.remove! ' Guide'
name name
end end

@ -5,7 +5,7 @@ module Docs
self.root_path = 'guide/overview/index.html' self.root_path = 'guide/overview/index.html'
self.links = { self.links = {
home: 'https://cordova.apache.org/', 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' html_filters.push 'cordova/entries', 'cordova/clean_html'
@ -24,23 +24,28 @@ module Docs
end end
options[:attribution] = <<-HTML 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. Licensed under the Apache License 2.0.
HTML 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 version '8' do
self.release = '8.1.2' 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 end
version '7' do version '7' do
self.release = '7.1.0' 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 end
version '6' do version '6' do
self.release = '6.5.0' 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 end
def get_latest_version(opts) def get_latest_version(opts)

Loading…
Cancel
Save