From d12d8df22ac4cd36668b70f2a48cfebfb168809b Mon Sep 17 00:00:00 2001 From: Maxim Ivanov Date: Sun, 18 Dec 2016 07:55:26 +0200 Subject: [PATCH] Rustdoc scraper: add rule to remove "Run" links All over the Rust docs, there's this problem: ![screenshot](http://i.imgur.com/psGETj9.png) It obviously comes from the live-test "Run" button in the original docs: ![screenshot](http://i.imgur.com/srIMvyF.png) Hence, this commit filters out the `test-arrow` links to fix the problem. --- lib/docs/filters/rust/clean_html.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/docs/filters/rust/clean_html.rb b/lib/docs/filters/rust/clean_html.rb index 69b9bcdc..06e8988a 100644 --- a/lib/docs/filters/rust/clean_html.rb +++ b/lib/docs/filters/rust/clean_html.rb @@ -11,6 +11,7 @@ module Docs end css('.rusttest', 'hr').remove + css('pre > .test-arrow').remove css('.docblock > h1').each { |node| node.name = 'h4' } css('h2.section-header').each { |node| node.name = 'h3' }