Update React documentation (19)

pull/2375/head
Simon Legner 1 month ago
parent 0a1b287622
commit 7d2643260d

@ -8,19 +8,27 @@ module Docs
code: 'https://github.com/facebook/react' code: 'https://github.com/facebook/react'
} }
options[:attribution] = <<-HTML
&copy; 2013&ndash;present Facebook Inc.<br>
Licensed under the Creative Commons Attribution 4.0 International Public License.
HTML
version do version do
self.release = '18.3.1' self.release = '19'
self.base_url = 'https://react.dev' self.base_url = 'https://react.dev'
self.initial_paths = %w(/reference/react /learn) self.initial_paths = %w(/reference/react /learn)
html_filters.push 'react/entries_react_dev', 'react/clean_html_react_dev' html_filters.push 'react/entries_react_dev', 'react/clean_html_react_dev'
options[:only_patterns] = [/\A\/learn/, /\A\/reference/] options[:only_patterns] = [/\A\/learn/, /\A\/reference/]
end
version '18' do
self.release = '18.3.1'
self.base_url = 'https://18.react.dev'
self.initial_paths = %w(/reference/react /learn)
html_filters.push 'react/entries_react_dev', 'react/clean_html_react_dev'
options[:attribution] = <<-HTML options[:only_patterns] = [/\A\/learn/, /\A\/reference/]
&copy; 2013&ndash;present Facebook Inc.<br>
Licensed under the Creative Commons Attribution 4.0 International Public License.
HTML
end end
version '17' do version '17' do
@ -42,11 +50,6 @@ module Docs
'working-with-the-browser.html' => 'refs-and-the-dom.html', 'working-with-the-browser.html' => 'refs-and-the-dom.html',
'top-level-api.html' => 'react-api.html', 'top-level-api.html' => 'react-api.html',
} }
options[:attribution] = <<-HTML
&copy; 2013&ndash;present Facebook Inc.<br>
Licensed under the Creative Commons Attribution 4.0 International Public License.
HTML
end end
def get_latest_version(opts) def get_latest_version(opts)

Loading…
Cancel
Save