[devdocsgjs/main: 1507/1867] Update Rust documentation (1.50.0)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1507/1867] Update Rust documentation (1.50.0)
- Date: Fri, 19 Nov 2021 23:48:06 +0000 (UTC)
commit aebc4f815144a4575ecf16fcbabfeb93baf84463
Author: Simon Legner <Simon Legner gmail com>
Date: Thu Feb 18 18:56:41 2021 +0100
Update Rust documentation (1.50.0)
lib/docs/filters/rust/clean_html.rb | 5 +++++
lib/docs/scrapers/rust.rb | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/lib/docs/filters/rust/clean_html.rb b/lib/docs/filters/rust/clean_html.rb
index 245ed701..582ea8c8 100644
--- a/lib/docs/filters/rust/clean_html.rb
+++ b/lib/docs/filters/rust/clean_html.rb
@@ -63,6 +63,11 @@ module Docs
end
css('> .impl-items', '> .docblock', 'pre > pre', '.tooltiptext', '.tooltip').each do |node|
+ # see .tooltip.ignore::after in https://doc.rust-lang.org/rustdoc1.50.0.css
+ node.content += ' This example is not tested' if node['class'].include?('ignore')
+ node.content += ' This example deliberately fails to compile' if
node['class'].include?('compile_fail')
+ node.content += ' This example panics' if node['class'].include?('should_panic')
+ node.content += ' This code runs with edition ' + node['data-edition'] if
node['class'].include?('edition')
node.before(node.children).remove
end
diff --git a/lib/docs/scrapers/rust.rb b/lib/docs/scrapers/rust.rb
index 3ad8308c..55f1fb8c 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.49.0'
+ self.release = '1.50.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]