[devdocsgjs/main: 50/76] Update TensorFlow documentation (2.9.1)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 50/76] Update TensorFlow documentation (2.9.1)
- Date: Fri, 15 Jul 2022 21:39:46 +0000 (UTC)
commit cea2139b9b72131a31866f7326dcb4effebafbe9
Author: Simon Legner <Simon Legner gmail com>
Date: Thu Jun 2 23:37:04 2022 +0200
Update TensorFlow documentation (2.9.1)
Fixes #1656.
assets/javascripts/templates/pages/about_tmpl.coffee | 2 +-
lib/docs/filters/tensorflow/clean_html.rb | 1 +
lib/docs/scrapers/tensorflow/tensorflow.rb | 7 ++++++-
lib/docs/scrapers/tensorflow/tensorflow_cpp.rb | 5 +++++
4 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee
b/assets/javascripts/templates/pages/about_tmpl.coffee
index 46630861..ebadb1b3 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -868,7 +868,7 @@ credits = [
'http://tcl.tk/software/tcltk/license.html'
], [
'TensorFlow',
- '2020 The TensorFlow Authors',
+ '2022 The TensorFlow Authors',
'CC BY',
'https://creativecommons.org/licenses/by/4.0/'
], [
diff --git a/lib/docs/filters/tensorflow/clean_html.rb b/lib/docs/filters/tensorflow/clean_html.rb
index e508f971..6d594d70 100644
--- a/lib/docs/filters/tensorflow/clean_html.rb
+++ b/lib/docs/filters/tensorflow/clean_html.rb
@@ -5,6 +5,7 @@ module Docs
@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('devsite-bookmark').remove
css('aside.note').each do |node|
node.name = 'blockquote'
diff --git a/lib/docs/scrapers/tensorflow/tensorflow.rb b/lib/docs/scrapers/tensorflow/tensorflow.rb
index 4e1c4777..fbd68abc 100644
--- a/lib/docs/scrapers/tensorflow/tensorflow.rb
+++ b/lib/docs/scrapers/tensorflow/tensorflow.rb
@@ -14,11 +14,16 @@ module Docs
options[:container] = '.devsite-main-content'
options[:attribution] = <<-HTML
- © 2020 The TensorFlow Authors. All rights reserved.<br>
+ © 2022 The TensorFlow Authors. All rights reserved.<br>
Licensed under the Creative Commons Attribution License 4.0.<br>
Code samples licensed under the Apache 2.0 License.
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
self.release = "#{version}.0"
self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/python/tf"
diff --git a/lib/docs/scrapers/tensorflow/tensorflow_cpp.rb b/lib/docs/scrapers/tensorflow/tensorflow_cpp.rb
index feda35fd..e7dfbe9e 100644
--- a/lib/docs/scrapers/tensorflow/tensorflow_cpp.rb
+++ b/lib/docs/scrapers/tensorflow/tensorflow_cpp.rb
@@ -3,6 +3,11 @@ module Docs
self.name = 'TensorFlow C++'
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
self.release = "#{version}.0"
self.base_url = "https://www.tensorflow.org/versions/r#{version}/api_docs/cc"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]