Unified · Split
| @@ -63,6 +63,11 @@ module Docs · 62 unmodified lines | ||
| 63 | 63 | end |
| 64 | 64 | |
| 65 | 65 | css('> .impl-items', '> .docblock', 'pre > pre', '.tooltiptext', '.tooltip').each do |node| |
| 66 | + # see .tooltip.ignore::after in https://doc.rust-lang.org/rustdoc1.50.0.css | |
| 67 | + node.content += ' This example is not tested' if node['class'].include?('ignore') | |
| 68 | + node.content += ' This example deliberately fails to compile' if node['class'].include?('compile_fail') | |
| 69 | + node.content += ' This example panics' if node['class'].include?('should_panic') | |
| 70 | + node.content += ' This code runs with edition ' + node['data-edition'] if node['class'].include?('edition') | |
| 66 | 71 | node.before(node.children).remove |
| 67 | 72 | end |
| 68 | 73 | |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | ||
| 3 | 3 | module Docs |
| 4 | 4 | class Rust < UrlScraper |
| 5 | 5 | self.type = 'rust' |
| 6 | − self.release = '1.49.0' | |
| 6 | + self.release = '1.50.0' | |
| 7 | 7 | self.base_url = 'https://doc.rust-lang.org/' |
| 8 | 8 | self.root_path = 'book/index.html' |
| 9 | 9 | self.initial_paths = %w( |