History

Update React Native documentation (0.20)

Thibaut Courouble committed 10 years ago

Commit 70688f91 parent dd35d3b1 file · +6 −1Browse files

Unified · Split

lib/docs/scrapers/react_native.rb+6−1
@@ -3,7 +3,7 @@ module Docs · 2 unmodified lines
33 self.name = 'React Native'
44 self.slug = 'react_native'
55 self.type = 'react'
6− self.release = '0.19'
6+ self.release = '0.20'
77 self.base_url = 'https://facebook.github.io/react-native/docs/'
88 self.root_path = 'getting-started.html'
99 self.links = {
@@ -18,6 +18,11 @@ module Docs · 8 unmodified lines
1818 transforms.html
1919 troubleshooting.html)
2020
21+ options[:fix_urls] = ->(url) {
22+ url.sub! 'docs/docs', 'docs'
23+ url
24+ }
25+
2126 options[:attribution] = <<-HTML
2227 &copy; 2016 Facebook Inc.<br>
2328 Licensed under the Creative Commons Attribution 4.0 International Public License.