Update TensorFlow documentation (1.3)

This commit is contained in:
Thibaut Courouble 2017-09-17 11:26:03 -04:00
parent 9cce390ead
commit 06785c0df5
2 changed files with 6 additions and 5 deletions

View file

@ -6,6 +6,10 @@ module Docs
css('hr', '.devsite-nav', '.devsite-content-footer', '.devsite-article-body > br').remove
css('aside.note').each do |node|
node.name = 'blockquote'
end
css('.devsite-article-body', 'blockquote > blockquote', 'th > h2', 'th > h3').each do |node|
node.before(node.children).remove
end
@ -21,10 +25,6 @@ module Docs
node.parent.before(node).remove
end
css('aside.note').each do |node|
node.name = 'blockquote'
end
css('pre').each do |node|
node.content = node.content.strip_heredoc

View file

@ -4,7 +4,7 @@ module Docs
class Tensorflow < UrlScraper
self.name = 'TensorFlow'
self.type = 'tensorflow'
self.release = '1.2'
self.release = '1.3'
self.root_path = 'index.html'
self.links = {
home: 'https://www.tensorflow.org/',
@ -13,6 +13,7 @@ module Docs
html_filters.push 'tensorflow/entries', 'tensorflow/clean_html'
options[:max_image_size] = 300_000
options[:container] = '.devsite-main-content'
options[:fix_urls] = ->(url) do