[devdocsgjs/main: 1742/1867] Update Rust documentation (1.53.0)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1742/1867] Update Rust documentation (1.53.0)
- Date: Fri, 19 Nov 2021 23:48:17 +0000 (UTC)
commit 67c4b1ccbd55dc36c963b5b4fe20a8d6ca203608
Author: Simon Legner <Simon Legner gmail com>
Date: Sun Jul 4 10:59:07 2021 +0200
Update Rust documentation (1.53.0)
lib/docs/filters/rust/clean_html.rb | 2 +-
lib/docs/filters/rust/entries.rb | 2 +-
lib/docs/scrapers/rust.rb | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
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(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]