Update Rust documentation (1.60.0)

pull/1732/head
Simon Legner 3 years ago
parent 05ab3c6d75
commit 9cd9af0b14

@ -13,7 +13,7 @@ module Docs
node.before(node.children).remove
end
else
@doc = at_css('#main')
@doc = at_css('#main, #main-content')
css('.toggle-wrapper').remove
@ -21,6 +21,11 @@ module Docs
node.content = node.at_css('.in-band').content
end
css('.main-heading > h1.fqn').each do |node|
node.parent.name = 'h1'
node.parent.content = node.content
end
css('.stability .stab').each do |node|
node.name = 'span'
node.content = node.content

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

Loading…
Cancel
Save