File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ def call
7
7
i += 1 while n && n = n . previous_element
8
8
at_css ( 'h1' ) [ 'data-level' ] = i
9
9
10
- @doc = at_css ( '#api-doc, .content' )
10
+ @doc = at_css ( '#api-doc, main, .content' )
11
+
12
+ css ( 'nav' ) . remove # aria-labelledby="sidebar-heading"
11
13
12
14
css ( 'section' , 'div.highlighter-rouge' ) . each do |node |
13
15
node . before ( node . children ) . remove
14
16
end
15
17
16
- @doc = at_css ( '#page-doc' ) unless root_page?
17
-
18
18
if root_page?
19
19
at_css ( 'h1' ) . remove
20
20
css ( '> header' , '#menu' ) . remove
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ module Docs
2
2
class Express < UrlScraper
3
3
self . name = 'Express'
4
4
self . type = 'express'
5
- self . release = '4.21.2'
6
5
self . base_url = 'https://expressjs.com/en/'
7
- self . root_path = '4x/api.html'
8
6
self . initial_paths = %w(
9
7
starter/installing.html
10
8
guide/routing.html
@@ -29,6 +27,16 @@ class Express < UrlScraper
29
27
Licensed under the Creative Commons Attribution-ShareAlike License v3.0.
30
28
HTML
31
29
30
+ version do
31
+ self . release = '5.1.0'
32
+ self . root_path = '5x/api.html'
33
+ end
34
+
35
+ version '4' do
36
+ self . release = '4.21.2'
37
+ self . root_path = '4x/api.html'
38
+ end
39
+
32
40
def get_latest_version ( opts )
33
41
get_npm_version ( 'express' , opts )
34
42
end
You can’t perform that action at this time.
0 commit comments