diff --git a/lib/docs/filters/rust/clean_html.rb b/lib/docs/filters/rust/clean_html.rb index 582ea8c8..30b9318a 100644 --- a/lib/docs/filters/rust/clean_html.rb +++ b/lib/docs/filters/rust/clean_html.rb @@ -101,8 +101,8 @@ module Docs node.previous_element.before(node) end + css('#copy-path').remove css('.sidebar').remove - css('.collapse-toggle').remove doc diff --git a/lib/docs/filters/rust/entries.rb b/lib/docs/filters/rust/entries.rb index 2fa5186d..176f7e02 100644 --- a/lib/docs/filters/rust/entries.rb +++ b/lib/docs/filters/rust/entries.rb @@ -9,7 +9,7 @@ module Docs elsif slug == 'error-index' 'Compiler Errors' 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 name.prepend("#{mod}::") unless name.start_with?(mod) name diff --git a/lib/docs/scrapers/rust.rb b/lib/docs/scrapers/rust.rb index 8c5f944d..65bbbb07 100644 --- a/lib/docs/scrapers/rust.rb +++ b/lib/docs/scrapers/rust.rb @@ -3,7 +3,7 @@ module Docs class Rust < UrlScraper self.type = 'rust' - self.release = '1.52.1' + self.release = '1.53.0' self.base_url = 'https://doc.rust-lang.org/' self.root_path = 'book/index.html' self.initial_paths = %w(