فهرست منبع

Update Cordova scraper

Thibaut 10 سال پیش
والد
کامیت
69d0a28f98
2فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 1 1
      assets/javascripts/templates/pages/about_tmpl.coffee
  2. 4 1
      lib/docs/scrapers/cordova.rb

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -112,7 +112,7 @@ credits = [
     'https://raw.github.com/jashkenas/coffee-script/master/LICENSE'
   ], [
     'Cordova',
-    '2012-2014 The Apache Software Foundation',
+    '2012-2015 The Apache Software Foundation',
     'Apache',
     'https://raw.githubusercontent.com/apache/cordova-docs/master/LICENSE'
   ], [

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

@@ -3,8 +3,11 @@ module Docs
     self.name = 'Cordova'
     self.type = 'cordova'
     self.version = '5.0.0'
-    self.base_url = 'http://cordova.apache.org/docs/en/5.0.0/'
+    self.base_url = "http://cordova.apache.org/docs/en/#{version}/"
     self.root_path = 'index.html'
+    self.links = {
+      home: 'http://cordova.apache.org/'
+    }
 
     html_filters.push 'cordova/clean_html', 'cordova/entries', 'title'