Update Rust documentation (1.53.0)

pull/1587/head
Simon Legner 4 years ago
parent 70be597a56
commit 67c4b1ccbd

@ -101,8 +101,8 @@ module Docs
node.previous_element.before(node) node.previous_element.before(node)
end end
css('#copy-path').remove
css('.sidebar').remove css('.sidebar').remove
css('.collapse-toggle').remove css('.collapse-toggle').remove
doc doc

@ -9,7 +9,7 @@ module Docs
elsif slug == 'error-index' elsif slug == 'error-index'
'Compiler Errors' 'Compiler Errors'
else else
name = at_css('h1.fqn .in-band').content.remove(/\A.+\s/) name = at_css('h1.fqn .in-band').content.remove(/\A.+\s/).remove('⎘')
mod = slug.split('/').first mod = slug.split('/').first
name.prepend("#{mod}::") unless name.start_with?(mod) name.prepend("#{mod}::") unless name.start_with?(mod)
name name

@ -3,7 +3,7 @@
module Docs module Docs
class Rust < UrlScraper class Rust < UrlScraper
self.type = 'rust' self.type = 'rust'
self.release = '1.52.1' self.release = '1.53.0'
self.base_url = 'https://doc.rust-lang.org/' self.base_url = 'https://doc.rust-lang.org/'
self.root_path = 'book/index.html' self.root_path = 'book/index.html'
self.initial_paths = %w( self.initial_paths = %w(

Loading…
Cancel
Save