[Pkg-javascript-commits] [mathjax-docs] 04/06: Add a patch to not load external non-free images in badges.html.

Dmitry Shachnev mitya57 at moszumanska.debian.org
Fri Dec 29 08:57:53 UTC 2017


This is an automated email from the git hooks/post-receive script.

mitya57 pushed a commit to branch master
in repository mathjax-docs.

commit 07d3bb2f1892c872b43aa739a5d7eb3a7b6db524
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Fri Dec 29 11:51:48 2017 +0300

    Add a patch to not load external non-free images in badges.html.
    
    Also ignore the .pc directory when building the docs.
---
 debian/changelog                       |   2 +
 debian/patches/no_external_images.diff | 113 +++++++++++++++++++++++++++++++++
 debian/patches/no_load_pc.diff         |  21 ++++++
 debian/patches/series                  |   2 +
 4 files changed, 138 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 0973b95..1d0d3ab 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ mathjax-docs (2.7+20171212-1) UNRELEASED; urgency=medium
   * New upstream snapshot.
   * Add build-dependency on python3-sphinx-rtd-theme.
   * Update to debhelper compat level 11.
+  * Add a patch to not load external non-free images in badges.html.
+  * Add a patch to ignore the .pc directory when building the docs.
 
  -- Dmitry Shachnev <mitya57 at debian.org>  Fri, 29 Dec 2017 11:24:16 +0300
 
diff --git a/debian/patches/no_external_images.diff b/debian/patches/no_external_images.diff
new file mode 100644
index 0000000..4b34117
--- /dev/null
+++ b/debian/patches/no_external_images.diff
@@ -0,0 +1,113 @@
+Description: do not load external non-free images on this page
+Author: Dmitry Shachnev <mitya57 at debian.org>
+Forwarded: not-needed
+Last-Update: 2017-12-29
+
+--- a/misc/badges.rst
++++ b/misc/badges.rst
+@@ -9,102 +9,10 @@
+ project, please consider including one of our “Powered by MathJax” web
+ badges on your pages that use it.
+ 
+-The MathJax Badges
+-==================
++Please refer to the official `documentation website`_ for details on
++which badges are available and how to use them.
+ 
+-
+-.. raw:: html
+-
+-      <table>
+-      <thead>
+-      <tr>
+-      <td>Badge</td>
+-      <td>HTML to Use</td>
+-      </tr>
+-      </thead>
+-      <tbody>
+-      <tr>
+-      <td>
+-      <a href="https://www.mathjax.org/"><br />
+-      <img title="Powered by MathJax" src="https://www.mathjax.org/badge/badge.gif" border="0" alt="Powered by MathJax" /><br />
+-      </a>
+-      </td>
+-      <td>
+-      <pre><a href="https://www.mathjax.org">
+-          <img title="Powered by MathJax"
+-          src="https://www.mathjax.org/badge/badge.gif"
+-          border="0" alt="Powered by MathJax" />
+-      </a></pre>
+-      </td>
+-      </tr>
+-      <tr>
+-      <td>
+-      <a href="https://www.mathjax.org"><br />
+-      <img title="Powered by MathJax" src="https://www.mathjax.org/badge/badge-square.png" border="0" alt="Powered by MathJax" /><br />
+-      </a>
+-      </td>
+-      <td>
+-      <pre><a href="https://www.mathjax.org">
+-          <img title="Powered by MathJax"
+-          src="https://www.mathjax.org/badge/badge-square.png"
+-          border="0" alt="Powered by MathJax" />
+-      </a></pre>
+-      </td>
+-      </tr>
+-      <tr>
+-      <td>
+-      <a href="https://www.mathjax.org"><br />
+-      <img title="Powered by MathJax" src="https://www.mathjax.org/badge/badge-square-2.png" border="0" alt="Powered by MathJax" /><br />
+-      </a>
+-      </td>
+-      <td>
+-      <pre><a href="https://www.mathjax.org">
+-          <img title="Powered by MathJax"
+-          src="https://www.mathjax.org/badge/badge-square-2.png"
+-          border="0" alt="Powered by MathJax" />
+-      </a></pre>
+-      </td>
+-      </tr>
+-      <tr>
+-      <td>
+-      <a href="https://www.mathjax.org"><br />
+-      <img title="Powered by MathJax" src="https://www.mathjax.org/badge/badge-square-3.png" border="0" alt="Powered by MathJax" /><br />
+-      </a>
+-      </td>
+-      <td>
+-      <pre><a href="https://www.mathjax.org">
+-          <img title="Powered by MathJax"
+-          src="https://www.mathjax.org/badge/badge-square-3.png"
+-          border="0" alt="Powered by MathJax" />
+-      </a></pre>
+-      </td>
+-      </tr>
+-      </tbody>
+-      </table>
+-
+-Thanks to our friends at OER Glue for designing the last two badges.
+-
+-The MathJax Logo
+-================
+-
+-.. raw:: html
+-
+-      <table>
+-      <tr>
+-      <td>
+-      <a href="https://www.mathjax.org"><br />
+-      <img title="Powered by MathJax" src="https://www.mathjax.org/badge/mj_logo.png" border="0" alt="Powered by MathJax" /><br />
+-      </a>
+-      </td>
+-      <td>
+-      <pre><a href="https://www.mathjax.org">
+-	  <img title="Powered by MathJax"
+-	  src="https://www.mathjax.org/badge/mj_logo.png"
+-	  border="0" alt="Powered by MathJax" />
+-      </a></pre>
+-      </td>
+-      </tr>
+-      </table>
++.. _`documentation website`: http://docs.mathjax.org/en/latest/misc/badges.html
+ 
+ Alternative versions
+ ====================
diff --git a/debian/patches/no_load_pc.diff b/debian/patches/no_load_pc.diff
new file mode 100644
index 0000000..b193502
--- /dev/null
+++ b/debian/patches/no_load_pc.diff
@@ -0,0 +1,21 @@
+Description: add .pc to the list of excluded patterns
+Author: Dmitry Shachnev <mitya57 at debian.org>
+Forwarded: not-needed
+Last-Update: 2017-12-29
+
+--- a/conf.py
++++ b/conf.py
+@@ -62,9 +62,10 @@
+ # List of documents that shouldn't be included in the build.
+ #unused_docs = []
+ 
+-# List of directories, relative to source directory, that shouldn't be searched
+-# for source files.
+-exclude_trees = ['_build']
++# List of patterns, relative to source directory, that match files and
++# directories to ignore when looking for source files.
++# This patterns also effect to html_static_path and html_extra_path
++exclude_patterns = ['_build', '.pc']
+ 
+ # The reST default role (used for this markup: `text`) to use for all documents.
+ #default_role = None
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..dfc2b4e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+no_external_images.diff
+no_load_pc.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/mathjax-docs.git



More information about the Pkg-javascript-commits mailing list