Update TensorFlow documentation (2.9.1)

Fixes #1656.
pull/1763/head
Simon Legner 3 years ago
parent 7cd5ac6ff2
commit cea2139b9b

@ -868,7 +868,7 @@ credits = [
'http://tcl.tk/software/tcltk/license.html' 'http://tcl.tk/software/tcltk/license.html'
], [ ], [
'TensorFlow', 'TensorFlow',
'2020 The TensorFlow Authors', '2022 The TensorFlow Authors',
'CC BY', 'CC BY',
'https://creativecommons.org/licenses/by/4.0/' 'https://creativecommons.org/licenses/by/4.0/'
], [ ], [

@ -5,6 +5,7 @@ module Docs
@doc = at_css('.devsite-article') @doc = at_css('.devsite-article')
css('hr', '.devsite-nav', '.devsite-content-footer', '.devsite-article-body > br', '.devsite-article-meta', 'devsite-nav-buttons', '.devsite-banner', '.tfo-api img', '.tfo-notebook-buttons img', '.tfo-notebook-buttons>:first-child').remove css('hr', '.devsite-nav', '.devsite-content-footer', '.devsite-article-body > br', '.devsite-article-meta', 'devsite-nav-buttons', '.devsite-banner', '.tfo-api img', '.tfo-notebook-buttons img', '.tfo-notebook-buttons>:first-child').remove
css('devsite-bookmark').remove
css('aside.note').each do |node| css('aside.note').each do |node|
node.name = 'blockquote' node.name = 'blockquote'

@ -14,11 +14,16 @@ module Docs
options[:container] = '.devsite-main-content' options[:container] = '.devsite-main-content'
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2020 The TensorFlow Authors. All rights reserved.<br> &copy; 2022 The TensorFlow Authors. All rights reserved.<br>
Licensed under the Creative Commons Attribution License 4.0.<br> Licensed under the Creative Commons Attribution License 4.0.<br>
Code samples licensed under the Apache 2.0 License. Code samples licensed under the Apache 2.0 License.
HTML HTML
version '2.9' do
self.release = "2.9.1"
self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/python/tf"
end
version '2.4' do version '2.4' do
self.release = "#{version}.0" self.release = "#{version}.0"
self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/python/tf" self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/python/tf"

@ -3,6 +3,11 @@ module Docs
self.name = 'TensorFlow C++' self.name = 'TensorFlow C++'
self.slug = 'tensorflow_cpp' self.slug = 'tensorflow_cpp'
version '2.9' do
self.release = "2.9.1"
self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/cc"
end
version '2.4' do version '2.4' do
self.release = "#{version}.0" self.release = "#{version}.0"
self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/cc" self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/cc"

Loading…
Cancel
Save