[keras] 04/07: Fix privacy-breach-generic by replacing external image links in docs with local copies.
Stephen Sinclair
sinclairs-guest at moszumanska.debian.org
Thu Nov 9 15:27:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
sinclairs-guest pushed a commit to branch master
in repository keras.
commit 2d8dd801c8e41ea5140bbe84af21f16dad1f242b
Author: Stephen Sinclair <radarsat1 at gmail.com>
Date: Tue Nov 7 11:46:59 2017 -0300
Fix privacy-breach-generic by replacing external image links in docs with local copies.
---
debian/keras-doc.install | 2 ++
debian/multi-input-multi-output-graph.png | Bin 0 -> 82918 bytes
...ange-external-img-tag-urls-to-local-files.patch | 35 +++++++++++++++++++++
...rowsable-by-setting-use_directory_urls-fa.patch | 20 ++++++++++++
debian/patches/series | 2 ++
debian/regular_stacked_lstm.png | Bin 0 -> 38047 bytes
debian/source/include-binaries | 2 ++
7 files changed, 61 insertions(+)
diff --git a/debian/keras-doc.install b/debian/keras-doc.install
new file mode 100644
index 0000000..ee02996
--- /dev/null
+++ b/debian/keras-doc.install
@@ -0,0 +1,2 @@
+debian/multi-input-multi-output-graph.png usr/share/doc/keras-doc/html/getting-started/functional-api-guide/
+debian/regular_stacked_lstm.png usr/share/doc/keras-doc/html/getting-started/sequential-model-guide/
diff --git a/debian/multi-input-multi-output-graph.png b/debian/multi-input-multi-output-graph.png
new file mode 100644
index 0000000..179f21e
Binary files /dev/null and b/debian/multi-input-multi-output-graph.png differ
diff --git a/debian/patches/0001-Change-external-img-tag-urls-to-local-files.patch b/debian/patches/0001-Change-external-img-tag-urls-to-local-files.patch
new file mode 100644
index 0000000..2e4241b
--- /dev/null
+++ b/debian/patches/0001-Change-external-img-tag-urls-to-local-files.patch
@@ -0,0 +1,35 @@
+From: Stephen Sinclair <radarsat1 at gmail.com>
+Date: Tue, 7 Nov 2017 11:53:18 -0300
+Subject: Change external img tag urls to local files.
+
+---
+ docs/templates/getting-started/functional-api-guide.md | 2 +-
+ docs/templates/getting-started/sequential-model-guide.md | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/docs/templates/getting-started/functional-api-guide.md b/docs/templates/getting-started/functional-api-guide.md
+index 8ce256b..d40a91e 100644
+--- a/docs/templates/getting-started/functional-api-guide.md
++++ b/docs/templates/getting-started/functional-api-guide.md
+@@ -75,7 +75,7 @@ The model will also be supervised via two loss functions. Using the main loss fu
+
+ Here's what our model looks like:
+
+-<img src="https://s3.amazonaws.com/keras.io/img/multi-input-multi-output-graph.png" alt="multi-input-multi-output-graph" style="width: 400px;"/>
++<img src="multi-input-multi-output-graph.png" alt="multi-input-multi-output-graph" style="width: 400px;"/>
+
+ Let's implement it with the functional API.
+
+diff --git a/docs/templates/getting-started/sequential-model-guide.md b/docs/templates/getting-started/sequential-model-guide.md
+index 5c475dc..15b5751 100644
+--- a/docs/templates/getting-started/sequential-model-guide.md
++++ b/docs/templates/getting-started/sequential-model-guide.md
+@@ -312,7 +312,7 @@ The first two LSTMs return their full output sequences, but the last one only re
+ the last step in its output sequence, thus dropping the temporal dimension
+ (i.e. converting the input sequence into a single vector).
+
+-<img src="https://keras.io/img/regular_stacked_lstm.png" alt="stacked LSTM" style="width: 300px;"/>
++<img src="regular_stacked_lstm.png" alt="stacked LSTM" style="width: 300px;"/>
+
+ ```python
+ from keras.models import Sequential
diff --git a/debian/patches/0002-Make-docs-browsable-by-setting-use_directory_urls-fa.patch b/debian/patches/0002-Make-docs-browsable-by-setting-use_directory_urls-fa.patch
new file mode 100644
index 0000000..e1d5ac8
--- /dev/null
+++ b/debian/patches/0002-Make-docs-browsable-by-setting-use_directory_urls-fa.patch
@@ -0,0 +1,20 @@
+From: Stephen Sinclair <radarsat1 at gmail.com>
+Date: Tue, 7 Nov 2017 11:59:15 -0300
+Subject: Make docs browsable by setting use_directory_urls=false.
+
+---
+ docs/mkdocs.yml | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml
+index 64519a6..219e327 100644
+--- a/docs/mkdocs.yml
++++ b/docs/mkdocs.yml
+@@ -5,6 +5,7 @@ docs_dir: sources
+ repo_url: http://github.com/fchollet/keras
+ site_url: http://keras.io/
+ site_description: 'Documentation for Keras, the Python Deep Learning library.'
++use_directory_urls: false
+
+ dev_addr: '0.0.0.0:8000'
+ google_analytics: ['UA-61785484-1', 'keras.io']
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..797d0e2
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+0001-Change-external-img-tag-urls-to-local-files.patch
+0002-Make-docs-browsable-by-setting-use_directory_urls-fa.patch
diff --git a/debian/regular_stacked_lstm.png b/debian/regular_stacked_lstm.png
new file mode 100644
index 0000000..c59ce19
Binary files /dev/null and b/debian/regular_stacked_lstm.png differ
diff --git a/debian/source/include-binaries b/debian/source/include-binaries
new file mode 100644
index 0000000..335c966
--- /dev/null
+++ b/debian/source/include-binaries
@@ -0,0 +1,2 @@
+debian/multi-input-multi-output-graph.png
+debian/regular_stacked_lstm.png
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/keras.git
More information about the debian-science-commits
mailing list