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
193 'https://raw.githubusercontent.com/composer/composer/master/LICENSE'193 'https://raw.githubusercontent.com/composer/composer/master/LICENSE'
194 ], [194 ], [
195 'Cordova',195 'Cordova',
196 '2012-2018 The Apache Software Foundation',196 '2012, 2013, 2015 The Apache Software Foundation',
197 'Apache',197 'Apache',
198 'https://raw.githubusercontent.com/apache/cordova-docs/master/LICENSE'198 'https://raw.githubusercontent.com/apache/cordova-docs/master/LICENSE'
199 ], [199 ], [
lib/docs/filters/cordova/entries.rb+1−1
@@ -3,7 +3,7 @@ module Docs · 2 unmodified lines
3 class EntriesFilter < Docs::EntriesFilter3 class EntriesFilter < Docs::EntriesFilter
4 def get_name4 def get_name
5 return 'CLI' if slug == 'reference/cordova-cli/index'5 return 'CLI' if slug == 'reference/cordova-cli/index'
6 name = at_css('#page-toc-source h1').content.strip6 name = at_css('#page-toc-source').at_css('h1, h2').content.strip
7 name.remove! ' Guide'7 name.remove! ' Guide'
8 name8 name
9 end9 end
lib/docs/scrapers/cordova.rb+10−5
@@ -5,7 +5,7 @@ module Docs · 4 unmodified lines
5 self.root_path = 'guide/overview/index.html'5 self.root_path = 'guide/overview/index.html'
6 self.links = {6 self.links = {
7 home: 'https://cordova.apache.org/',7 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'
9 }9 }
10 10
11 html_filters.push 'cordova/entries', 'cordova/clean_html'11 html_filters.push 'cordova/entries', 'cordova/clean_html'
@@ -24,23 +24,28 @@ module Docs · 12 unmodified lines
24 end24 end
25 25
26 options[:attribution] = <<-HTML26 options[:attribution] = <<-HTML
27 &copy; 2012&ndash;2018 The Apache Software Foundation<br>27 &copy; 2012, 2013, 2015 The Apache Software Foundation<br>
28 Licensed under the Apache License 2.0.28 Licensed under the Apache License 2.0.
29 HTML29 HTML
30 30
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
31 version '8' do36 version '8' do
32 self.release = '8.1.2'37 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/"
34 end39 end
35 40
36 version '7' do41 version '7' do
37 self.release = '7.1.0'42 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/"
39 end44 end
40 45
41 version '6' do46 version '6' do
42 self.release = '6.5.0'47 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/"
44 end49 end
45 50
46 def get_latest_version(opts)51 def get_latest_version(opts)