@@ -8,19 +8,27 @@ class React < UrlScraper
8
8
code : 'https://github.com/facebook/react'
9
9
}
10
10
11
+ options [ :attribution ] = <<-HTML
12
+ © 2013–present Facebook Inc.< br >
13
+ Licensed under the Creative Commons Attribution 4.0 International Public License.
14
+ HTML
15
+
11
16
version do
12
- self . release = '18.3.1 '
17
+ self . release = '19 '
13
18
self . base_url = 'https://react.dev'
14
19
self . initial_paths = %w( /reference/react /learn )
15
-
16
20
html_filters . push 'react/entries_react_dev' , 'react/clean_html_react_dev'
17
21
18
22
options [ :only_patterns ] = [ /\A \/ learn/ , /\A \/ reference/ ]
23
+ end
24
+
25
+ version '18' do
26
+ self . release = '18.3.1'
27
+ self . base_url = 'https://18.react.dev'
28
+ self . initial_paths = %w( /reference/react /learn )
29
+ html_filters . push 'react/entries_react_dev' , 'react/clean_html_react_dev'
19
30
20
- options [ :attribution ] = <<-HTML
21
- © 2013–present Facebook Inc.< br >
22
- Licensed under the Creative Commons Attribution 4.0 International Public License.
23
- HTML
31
+ options [ :only_patterns ] = [ /\A \/ learn/ , /\A \/ reference/ ]
24
32
end
25
33
26
34
version '17' do
@@ -42,11 +50,6 @@ class React < UrlScraper
42
50
'working-with-the-browser.html' => 'refs-and-the-dom.html' ,
43
51
'top-level-api.html' => 'react-api.html' ,
44
52
}
45
-
46
- options [ :attribution ] = <<-HTML
47
- © 2013–present Facebook Inc.< br >
48
- Licensed under the Creative Commons Attribution 4.0 International Public License.
49
- HTML
50
53
end
51
54
52
55
def get_latest_version ( opts )
0 commit comments