File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed
assets/javascripts/templates/pages Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -773,7 +773,7 @@ credits = [
773
773
' https://raw.githubusercontent.com/sequelize/sequelize/master/LICENSE'
774
774
], [
775
775
' Socket.io' ,
776
- ' 2014-2015 Automattic' ,
776
+ ' 2014-2018 Automattic' ,
777
777
' MIT' ,
778
778
' https://raw.githubusercontent.com/Automattic/socket.io/master/LICENSE'
779
779
], [
Original file line number Diff line number Diff line change @@ -9,12 +9,16 @@ def call
9
9
end
10
10
11
11
# version documentation message
12
- at_css ( '.warning' ) . remove
12
+ css ( '.warning' ) . remove
13
13
14
14
css ( 'header' , 'footer' , 'aside' ) . remove
15
15
16
16
css ( 'pre' ) . each do |node |
17
- node . content = node . content
17
+ if node . at_css ( '.line' ) . nil?
18
+ node . content = node . content
19
+ else
20
+ node . content = node . css ( '.line' ) . map ( &:content ) . join ( "\n " )
21
+ end
18
22
node [ 'data-language' ] = node . content =~ /\A \s *</ ? 'html' : 'javascript'
19
23
end
20
24
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ def get_name
6
6
end
7
7
8
8
def get_type
9
- if slug =~ /events|room|emit/ && version . eql? ( '3 ' )
9
+ if slug =~ /events|room|emit/ && ! version . eql? ( '2 ' )
10
10
'Events'
11
11
else
12
12
'Guides'
Original file line number Diff line number Diff line change @@ -14,12 +14,17 @@ class Socketio < UrlScraper
14
14
options [ :skip ] = %w( /faq /glossary )
15
15
16
16
options [ :attribution ] = <<-HTML
17
- © 2014–2020 Automattic< br >
17
+ © 2014–2021 Automattic< br >
18
18
Licensed under the MIT License.
19
19
HTML
20
20
21
+ version '4' do
22
+ self . release = '4.0.0'
23
+ self . base_url = "https://socket.io/docs/v#{ version } "
24
+ end
25
+
21
26
version '3' do
22
- self . release = '3.0.5 '
27
+ self . release = '3.1.2 '
23
28
self . base_url = "https://socket.io/docs/v#{ version } "
24
29
end
25
30
You can’t perform that action at this time.
0 commit comments