Skip to content

Commit e07e03a

Browse files
committed
Update Express documentation (4.16.1)
1 parent 2346b1a commit e07e03a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/docs/filters/express/clean_html.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ def call
1515

1616
@doc = at_css('#page-doc') unless root_page?
1717

18-
at_css('h1').remove if root_page?
18+
if root_page?
19+
at_css('h1').remove
20+
css('> header', '#menu').remove
21+
end
1922

2023
# Put id attributes on headings
2124
css('h2 + a[name]').each do |node|

lib/docs/scrapers/express.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Docs
22
class Express < UrlScraper
33
self.name = 'Express'
44
self.type = 'express'
5-
self.release = '4.15.4'
5+
self.release = '4.16.1'
66
self.base_url = 'http://expressjs.com/en/'
77
self.root_path = '4x/api.html'
88
self.initial_paths = %w(

0 commit comments

Comments
 (0)