History

Update Cordova documentation (9.0.0)

Jasper van Merle committed 7 years ago

Commit 0aa78301 parent 811c9b03 files · +12 −7Browse files

Unified · Split

3 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/filters/cordova/entries.rb +1 −1
  3. lib/docs/scrapers/cordova.rb +10 −5
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -193,7 +193,7 @@ credits = [ · 192 unmodified lines
193193 'https://raw.githubusercontent.com/composer/composer/master/LICENSE'
194194 ], [
195195 'Cordova',
196− '2012-2018 The Apache Software Foundation',
196+ '2012, 2013, 2015 The Apache Software Foundation',
197197 'Apache',
198198 'https://raw.githubusercontent.com/apache/cordova-docs/master/LICENSE'
199199 ], [
lib/docs/filters/cordova/entries.rb+1−1
@@ -3,7 +3,7 @@ module Docs · 2 unmodified lines
33 class EntriesFilter < Docs::EntriesFilter
44 def get_name
55 return 'CLI' if slug == 'reference/cordova-cli/index'
6− name = at_css('#page-toc-source h1').content.strip
6+ name = at_css('#page-toc-source').at_css('h1, h2').content.strip
77 name.remove! ' Guide'
88 name
99 end
lib/docs/scrapers/cordova.rb+10−5
@@ -5,7 +5,7 @@ module Docs · 4 unmodified lines
55 self.root_path = 'guide/overview/index.html'
66 self.links = {
77 home: 'https://cordova.apache.org/',
8− code: 'https://git-wip-us.apache.org/repos/asf/cordova-cli.git'
8+ code: 'https://github.com/apache/cordova'
99 }
1010
1111 html_filters.push 'cordova/entries', 'cordova/clean_html'
@@ -24,23 +24,28 @@ module Docs · 12 unmodified lines
2424 end
2525
2626 options[:attribution] = <<-HTML
27− &copy; 2012&ndash;2018 The Apache Software Foundation<br>
27+ &copy; 2012, 2013, 2015 The Apache Software Foundation<br>
2828 Licensed under the Apache License 2.0.
2929 HTML
3030
31+ version '9' do
32+ self.release = '9.0.0'
33+ self.base_url = "https://cordova.apache.org/docs/en/#{self.version}.x/"
34+ end
35+
3136 version '8' do
3237 self.release = '8.1.2'
33− self.base_url = 'https://cordova.apache.org/docs/en/8.x/'
38+ self.base_url = "https://cordova.apache.org/docs/en/#{self.version}.x/"
3439 end
3540
3641 version '7' do
3742 self.release = '7.1.0'
38− self.base_url = 'https://cordova.apache.org/docs/en/7.x/'
43+ self.base_url = "https://cordova.apache.org/docs/en/#{self.version}.x/"
3944 end
4045
4146 version '6' do
4247 self.release = '6.5.0'
43− self.base_url = 'https://cordova.apache.org/docs/en/6.x/'
48+ self.base_url = "https://cordova.apache.org/docs/en/#{self.version}.x/"
4449 end
4550
4651 def get_latest_version(opts)