@@ -8,19 +8,27 @@ class React < UrlScraper
88 code : 'https://github.com/facebook/react'
99 }
1010
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+
1116 version do
12- self . release = '18.3.1 '
17+ self . release = '19 '
1318 self . base_url = 'https://react.dev'
1419 self . initial_paths = %w( /reference/react /learn )
15-
1620 html_filters . push 'react/entries_react_dev' , 'react/clean_html_react_dev'
1721
1822 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'
1930
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/ ]
2432 end
2533
2634 version '17' do
@@ -42,11 +50,6 @@ class React < UrlScraper
4250 'working-with-the-browser.html' => 'refs-and-the-dom.html' ,
4351 'top-level-api.html' => 'react-api.html' ,
4452 }
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
5053 end
5154
5255 def get_latest_version ( opts )
0 commit comments