From 6ff895904f261937f2698c9b923e29bc671eb7f2 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 4 Nov 2018 09:28:25 -0500 Subject: [PATCH] Update Cordova documentation (8.1.2) --- assets/javascripts/templates/pages/about_tmpl.coffee | 2 +- lib/docs/filters/cordova/clean_html.rb | 2 +- lib/docs/scrapers/cordova.rb | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index ffa3a690..3fe97026 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -192,7 +192,7 @@ credits = [ 'https://raw.githubusercontent.com/jashkenas/coffeescript/master/LICENSE' ], [ 'Cordova', - '2012-2017 The Apache Software Foundation', + '2012-2018 The Apache Software Foundation', 'Apache', 'https://raw.githubusercontent.com/apache/cordova-docs/master/LICENSE' ], [ diff --git a/lib/docs/filters/cordova/clean_html.rb b/lib/docs/filters/cordova/clean_html.rb index 3a645cbe..77c1adca 100644 --- a/lib/docs/filters/cordova/clean_html.rb +++ b/lib/docs/filters/cordova/clean_html.rb @@ -2,7 +2,7 @@ module Docs class Cordova class CleanHtmlFilter < Filter def call - @doc = at_css('.page-content > div') + @doc = at_css('#page-toc-source') || at_css('.page-content > div') at_css('h1').content = 'Apache Cordova' if root_page? diff --git a/lib/docs/scrapers/cordova.rb b/lib/docs/scrapers/cordova.rb index a8ff86e9..f74c72ff 100644 --- a/lib/docs/scrapers/cordova.rb +++ b/lib/docs/scrapers/cordova.rb @@ -24,10 +24,15 @@ module Docs end options[:attribution] = <<-HTML - © 2012–2017 The Apache Software Foundation
+ © 2012–2018 The Apache Software Foundation
Licensed under the Apache License 2.0. HTML + version '8' do + self.release = '8.1.2' + self.base_url = 'https://cordova.apache.org/docs/en/8.x/' + end + version '7' do self.release = '7.1.0' self.base_url = 'https://cordova.apache.org/docs/en/7.x/'