History

Update TensorFlow documentation (2.9.1)

Fixes #1656.

Simon Legner committed 4 years ago

Commit cea21391 parent 7cd5ac64 files · +13 −2Browse files

Unified · Split

4 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/filters/tensorflow/clean_html.rb +1 −0
  3. lib/docs/scrapers/tensorflow/tensorflow.rb +6 −1
  4. lib/docs/scrapers/tensorflow/tensorflow_cpp.rb +5 −0
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -868,7 +868,7 @@ credits = [ · 867 unmodified lines
868 'http://tcl.tk/software/tcltk/license.html'868 'http://tcl.tk/software/tcltk/license.html'
869 ], [869 ], [
870 'TensorFlow',870 'TensorFlow',
871 '2020 The TensorFlow Authors',871 '2022 The TensorFlow Authors',
872 'CC BY',872 'CC BY',
873 'https://creativecommons.org/licenses/by/4.0/'873 'https://creativecommons.org/licenses/by/4.0/'
874 ], [874 ], [
lib/docs/filters/tensorflow/clean_html.rb+1−0
@@ -5,6 +5,7 @@ module Docs · 4 unmodified lines
5 @doc = at_css('.devsite-article')5 @doc = at_css('.devsite-article')
6 6
7 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').remove7 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
8 css('devsite-bookmark').remove
8 9
9 css('aside.note').each do |node|10 css('aside.note').each do |node|
10 node.name = 'blockquote'11 node.name = 'blockquote'
lib/docs/scrapers/tensorflow/tensorflow.rb+6−1
@@ -14,11 +14,16 @@ module Docs · 13 unmodified lines
14 options[:container] = '.devsite-main-content'14 options[:container] = '.devsite-main-content'
15 15
16 options[:attribution] = <<-HTML16 options[:attribution] = <<-HTML
17 &copy; 2020 The TensorFlow Authors. All rights reserved.<br>17 &copy; 2022 The TensorFlow Authors. All rights reserved.<br>
18 Licensed under the Creative Commons Attribution License 4.0.<br>18 Licensed under the Creative Commons Attribution License 4.0.<br>
19 Code samples licensed under the Apache 2.0 License.19 Code samples licensed under the Apache 2.0 License.
20 HTML20 HTML
21 21
22 version '2.9' do
23 self.release = "2.9.1"
24 self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/python/tf"
25 end
26
22 version '2.4' do27 version '2.4' do
23 self.release = "#{version}.0"28 self.release = "#{version}.0"
24 self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/python/tf"29 self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/python/tf"
lib/docs/scrapers/tensorflow/tensorflow_cpp.rb+5−0
@@ -3,6 +3,11 @@ module Docs · 2 unmodified lines
3 self.name = 'TensorFlow C++'3 self.name = 'TensorFlow C++'
4 self.slug = 'tensorflow_cpp'4 self.slug = 'tensorflow_cpp'
5 5
6 version '2.9' do
7 self.release = "2.9.1"
8 self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/cc"
9 end
10
6 version '2.4' do11 version '2.4' do
7 self.release = "#{version}.0"12 self.release = "#{version}.0"
8 self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/cc"13 self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/cc"