소스 검색

Update Express documentation (4.16.1)

Thibaut Courouble 8 년 전
부모
커밋
e07e03a9db
2개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 1
      lib/docs/filters/express/clean_html.rb
  2. 1 1
      lib/docs/scrapers/express.rb

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

@@ -15,7 +15,10 @@ module Docs
 
         @doc = at_css('#page-doc') unless root_page?
 
-        at_css('h1').remove if root_page?
+        if root_page?
+          at_css('h1').remove
+          css('> header', '#menu').remove
+        end
 
         # Put id attributes on headings
         css('h2 + a[name]').each do |node|

+ 1 - 1
lib/docs/scrapers/express.rb

@@ -2,7 +2,7 @@ module Docs
   class Express < UrlScraper
     self.name = 'Express'
     self.type = 'express'
-    self.release = '4.15.4'
+    self.release = '4.16.1'
     self.base_url = 'http://expressjs.com/en/'
     self.root_path = '4x/api.html'
     self.initial_paths = %w(