[Python-modules-commits] r33932 - in packages/scipy/trunk/debian (4 files)

jcjaskula-guest at users.alioth.debian.org jcjaskula-guest at users.alioth.debian.org
Thu Aug 20 23:18:03 UTC 2015


    Date: Thursday, August 20, 2015 @ 23:18:02
  Author: jcjaskula-guest
Revision: 33932

Use local javascript libraries

Added:
  packages/scipy/trunk/debian/patches/use_local_mathjax.patch
Modified:
  packages/scipy/trunk/debian/changelog
  packages/scipy/trunk/debian/patches/series
  packages/scipy/trunk/debian/rules

Modified: packages/scipy/trunk/debian/changelog
===================================================================
--- packages/scipy/trunk/debian/changelog	2015-08-20 22:59:02 UTC (rev 33931)
+++ packages/scipy/trunk/debian/changelog	2015-08-20 23:18:02 UTC (rev 33932)
@@ -14,6 +14,8 @@
   * d/control: 
     - Added dh_python to B-d
     - Removed unnecessary XS-Testsuite field
+  * Linking to local javascript libraries
+    - use_local_mathjax.patch
 
  -- Varun Hiremath <varun at debian.org>  Mon, 17 Aug 2015 19:27:21 -0400
 

Modified: packages/scipy/trunk/debian/patches/series
===================================================================
--- packages/scipy/trunk/debian/patches/series	2015-08-20 22:59:02 UTC (rev 33931)
+++ packages/scipy/trunk/debian/patches/series	2015-08-20 23:18:02 UTC (rev 33932)
@@ -1,3 +1,4 @@
+use_local_mathjax.patch
 restore_sys_argv.patch
 blitz++.patch
 qhull-lfs.patch

Added: packages/scipy/trunk/debian/patches/use_local_mathjax.patch
===================================================================
--- packages/scipy/trunk/debian/patches/use_local_mathjax.patch	                        (rev 0)
+++ packages/scipy/trunk/debian/patches/use_local_mathjax.patch	2015-08-20 23:18:02 UTC (rev 33932)
@@ -0,0 +1,13 @@
+Setting mathjax_path variable to use the local mathjax javascript library
+--- a/doc/source/conf.py
++++ b/doc/source/conf.py
+@@ -141,6 +141,9 @@
+ 
+ htmlhelp_basename = 'scipy'
+ 
++#mathjax_path='/usr/share/javascript/mathjax/MathJax.js'
++mathjax_path='MathJax.js'
++
+ pngmath_use_preview = True
+ pngmath_dvipng_args = ['-gamma', '1.5', '-D', '96', '-bg', 'Transparent']
+ 

Modified: packages/scipy/trunk/debian/rules
===================================================================
--- packages/scipy/trunk/debian/rules	2015-08-20 22:59:02 UTC (rev 33931)
+++ packages/scipy/trunk/debian/rules	2015-08-20 23:18:02 UTC (rev 33932)
@@ -102,6 +102,16 @@
 	dh_strip -ppython-scipy --dbg-package=python-scipy-dbg
 	dh_strip -ppython3-scipy --dbg-package=python3-scipy-dbg
 
+override_dh_sphinxdoc:
+        rm -rf debian/python-scipy-doc/usr/share/doc/python-scipy-doc/html/_static/jquery.js
+        dh_link -ppython-scipy-doc /usr/share/javascript/jquery/jquery.js /usr/share/doc/python-scipy-doc/html/_static/jquery.js
+
+        rm -rf debian/python-scipy-doc/usr/share/doc/python-scipy-doc/html/_static/underscore.js
+        dh_link -ppython-scipy-doc /usr/share/javascript/underscore/underscore.js /usr/share/doc/python-scipy-doc/html/_static/underscore.js
+
+        dh_link -ppython-scipy-doc /usr/share/javascript/mathjax/MathJax.js /usr/share/doc/python-scipy-doc/html/_static/MathJax.js
+        dh_sphinxdoc
+
 override_dh_installdocs-indep:
 	dh_installdocs -i
 	dh_sphinxdoc -i




More information about the Python-modules-commits mailing list