Ver Fonte

Update Cordova documentation (8.1.2)

Thibaut Courouble há 7 anos atrás
pai
commit
6ff895904f

+ 1 - 1
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'
   ], [

+ 1 - 1
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?
 

+ 6 - 1
lib/docs/scrapers/cordova.rb

@@ -24,10 +24,15 @@ module Docs
     end
 
     options[:attribution] = <<-HTML
-      &copy; 2012&ndash;2017 The Apache Software Foundation<br>
+      &copy; 2012&ndash;2018 The Apache Software Foundation<br>
       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/'