Unified · Split
| @@ -6,6 +6,10 @@ module Docs · 5 unmodified lines | ||
| 6 | 6 | |
| 7 | 7 | css('hr', '.devsite-nav', '.devsite-content-footer', '.devsite-article-body > br').remove |
| 8 | 8 | |
| 9 | + css('aside.note').each do |node| | |
| 10 | + node.name = 'blockquote' | |
| 11 | + end | |
| 12 | + | |
| 9 | 13 | css('.devsite-article-body', 'blockquote > blockquote', 'th > h2', 'th > h3').each do |node| |
| 10 | 14 | node.before(node.children).remove |
| 11 | 15 | end |
| @@ -21,10 +25,6 @@ module Docs · 9 unmodified lines | ||
| 21 | 25 | node.parent.before(node).remove |
| 22 | 26 | end |
| 23 | 27 | |
| 24 | − css('aside.note').each do |node| | |
| 25 | − node.name = 'blockquote' | |
| 26 | − end | |
| 27 | − | |
| 28 | 28 | css('pre').each do |node| |
| 29 | 29 | node.content = node.content.strip_heredoc |
| 30 | 30 | |
| @@ -4,7 +4,7 @@ module Docs · 3 unmodified lines | ||
| 4 | 4 | class Tensorflow < UrlScraper |
| 5 | 5 | self.name = 'TensorFlow' |
| 6 | 6 | self.type = 'tensorflow' |
| 7 | − self.release = '1.2' | |
| 7 | + self.release = '1.3' | |
| 8 | 8 | self.root_path = 'index.html' |
| 9 | 9 | self.links = { |
| 10 | 10 | home: 'https://www.tensorflow.org/', |
| @@ -13,6 +13,7 @@ module Docs · 2 unmodified lines | ||
| 13 | 13 | |
| 14 | 14 | html_filters.push 'tensorflow/entries', 'tensorflow/clean_html' |
| 15 | 15 | |
| 16 | + options[:max_image_size] = 300_000 | |
| 16 | 17 | options[:container] = '.devsite-main-content' |
| 17 | 18 | |
| 18 | 19 | options[:fix_urls] = ->(url) do |