浏览代码

Update Express documentation (4.15.2)

Thibaut Courouble 8 年之前
父节点
当前提交
0517658fd4

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

@@ -232,8 +232,8 @@ credits = [
   ], [
     'Express',
     '2016 StrongLoop, IBM, and other expressjs.com contributors.',
-    'Unknown',
-    'https://github.com/expressjs/expressjs.com/issues/413'
+    'CC BY-SA',
+    'https://raw.githubusercontent.com/expressjs/expressjs.com/gh-pages/LICENSE.md'
   ], [
     'Fish',
     '2005-2009 Axel Liljencrantz',

+ 1 - 1
lib/docs/filters/express/clean_html.rb

@@ -6,7 +6,7 @@ module Docs
           node.before(node.children).remove
         end
 
-        doc.child.remove while doc.child.name != 'h1'
+        @doc = at_css('#page-doc') unless root_page?
 
         at_css('h1').remove if root_page?
 

+ 3 - 2
lib/docs/scrapers/express.rb

@@ -2,7 +2,7 @@ module Docs
   class Express < UrlScraper
     self.name = 'Express'
     self.type = 'express'
-    self.release = '4.14.0'
+    self.release = '4.15.2'
     self.base_url = 'http://expressjs.com/en/'
     self.root_path = '4x/api.html'
     self.initial_paths = %w(
@@ -26,7 +26,8 @@ module Docs
       /\Aadvanced/ ]
 
     options[:attribution] = <<-HTML
-      &copy; 2016 StrongLoop, IBM, and other expressjs.com contributors.
+      &copy; 2016 StrongLoop, IBM, and other expressjs.com contributors.<br>
+      Licensed under the Creative Commons Attribution-ShareAlike License v3.0.
     HTML
   end
 end