[devdocsgjs/main: 929/1867] Update Cordova documentation (9.0.0)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 929/1867] Update Cordova documentation (9.0.0)
- Date: Fri, 19 Nov 2021 23:47:35 +0000 (UTC)
commit 0aa78305d82aebb4330fdb7ea020f8a91b21b784
Author: Jasper van Merle <jaspervmerle gmail com>
Date: Wed Sep 11 22:32:23 2019 +0200
Update Cordova documentation (9.0.0)
assets/javascripts/templates/pages/about_tmpl.coffee | 2 +-
lib/docs/filters/cordova/entries.rb | 2 +-
lib/docs/scrapers/cordova.rb | 15 ++++++++++-----
3 files changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee
b/assets/javascripts/templates/pages/about_tmpl.coffee
index 31e6a93f..f2a9eebe 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -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'
], [
diff --git a/lib/docs/filters/cordova/entries.rb b/lib/docs/filters/cordova/entries.rb
index 0620c82a..0b8b56d3 100644
--- a/lib/docs/filters/cordova/entries.rb
+++ b/lib/docs/filters/cordova/entries.rb
@@ -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
diff --git a/lib/docs/scrapers/cordova.rb b/lib/docs/scrapers/cordova.rb
index 65cf7f60..9395a316 100644
--- a/lib/docs/scrapers/cordova.rb
+++ b/lib/docs/scrapers/cordova.rb
@@ -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
- © 2012–2018 The Apache Software Foundation<br>
+ © 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]