[Pkg-javascript-commits] [SCM] Packaging of mathjax-docs branch, master, updated. 069899e4c10b7bbf39e63da530f60dca6ddc5afb

Dmitry Shachnev mitya57 at gmail.com
Sat Oct 27 18:27:39 UTC 2012


The following commit has been merged in the master branch:
commit 069899e4c10b7bbf39e63da530f60dca6ddc5afb
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Sat Oct 27 22:24:11 2012 +0400

    Add two new patches to use a different theme, update changelog

diff --git a/debian/changelog b/debian/changelog
index a0e4b0a..44f5bc1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,9 @@
-mathjax-docs (2012.09.24) UNRELEASED; urgency=low
+mathjax-docs (2012.10.24-1) UNRELEASED; urgency=low
 
   * Initial release.
+  * debian/patches/use_mjtheme.patch:
+    Use "mjtheme" theme instead of "sphinx-bootstrap".
+  * debian/patches/no_mathjax_js_in_documentation.patch:
+    Remove reference to MathJax.js from mjtheme/layout.html.
 
  -- Dmitry Shachnev <mitya57 at gmail.com>  Sat, 06 Oct 2012 09:33:21 +0400
diff --git a/debian/patches/no_mathjax_js_in_documentation.patch b/debian/patches/no_mathjax_js_in_documentation.patch
new file mode 100644
index 0000000..e170c9f
--- /dev/null
+++ b/debian/patches/no_mathjax_js_in_documentation.patch
@@ -0,0 +1,19 @@
+From: Dmitry Shachnev <mitya57 at gmail.com>
+Description: Remove reference to MathJax.js from mjtheme/layout.html
+ This is needed to work-around bug in dh_sphinxdoc:
+ http://bugs.debian.org/682850
+Forwarded: not-needed
+Last-Update: 2012-10-27
+
+diff --git a/_themes/mjtheme/layout.html b/_themes/mjtheme/layout.html
+index 7862e78..940ed2e 100644
+--- a/_themes/mjtheme/layout.html
++++ b/_themes/mjtheme/layout.html
+@@ -108,7 +108,6 @@
+     {%- for scriptfile in script_files %}
+     <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
+     {%- endfor %}
+-    <!--<script type="text/javascript" src="{{ pathto('../../MathJax.js?config=TeX-AMS-MML_HTMLorMML', 1) }}"></script>-->
+     {%- if use_opensearch %}
+     <link rel="search" type="application/opensearchdescription+xml"
+           title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bf34205
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+no_mathjax_js_in_documentation.patch
+use_mjtheme.patch
diff --git a/debian/patches/use_mjtheme.patch b/debian/patches/use_mjtheme.patch
new file mode 100644
index 0000000..847ecdf
--- /dev/null
+++ b/debian/patches/use_mjtheme.patch
@@ -0,0 +1,33 @@
+From: Dmitry Shachnev <mitya57 at gmail.com>
+Description: Use "mjtheme" theme instead of "sphinx-bootstrap"
+ The "sphinx-bootstrap" theme is bloated with external JavaScript and
+ CSS file, which is inappropriate for Debian.
+Forwarded: not-needed
+Last-Update: 2012-10-27
+
+diff --git a/conf.py b/conf.py
+index 6b97faf..10d9321 100644
+--- a/conf.py
++++ b/conf.py
+@@ -93,20 +93,7 @@ pygments_style = 'sphinx'
+ 
+ # The theme to use for HTML and HTML Help pages.  Major themes that come with
+ # Sphinx are currently 'default' and 'sphinxdoc'.
+-html_theme = 'sphinx-bootstrap'
+-
+-# Theme options are theme-specific and customize the look and feel of a theme
+-# further.  For a list of options available for each theme, see the
+-# documentation.
+-html_theme_options = {
+-    'analytics_code': 'UA-15609829-1',
+-    'analytics_domain': 'mathjax.org',
+-    'github_user': 'mathjax',
+-    'github_repo': 'mathjax',
+-    'twitter_username': 'mathjax',
+-    'home_url': 'http://www.mathjax.org',
+-    'disqus_shortname': 'mathjax',
+-}
++html_theme = 'mjtheme'
+ 
+ # Add any paths that contain custom themes here, relative to this directory.
+ html_theme_path = ['_themes']

-- 
Packaging of mathjax-docs



More information about the Pkg-javascript-commits mailing list