[devdocsgjs/main: 16/64] Update Rust documentation (1.60.0)




commit 9cd9af0b14782a9ac08bf4dcc32576246791279d
Author: Simon Legner <Simon Legner gmail com>
Date:   Thu Apr 14 21:48:01 2022 +0200

    Update Rust documentation (1.60.0)

 lib/docs/filters/rust/clean_html.rb | 7 ++++++-
 lib/docs/scrapers/rust.rb           | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/lib/docs/filters/rust/clean_html.rb b/lib/docs/filters/rust/clean_html.rb
index 650afdb1..fa24468d 100644
--- a/lib/docs/filters/rust/clean_html.rb
+++ b/lib/docs/filters/rust/clean_html.rb
@@ -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
diff --git a/lib/docs/scrapers/rust.rb b/lib/docs/scrapers/rust.rb
index 6d0e81f7..280dd85a 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.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(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]