Просмотр исходного кода

Update Express documentation (4.16.1)

Thibaut Courouble 8 лет назад
Родитель
Сommit
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(