[r-cran-glmnet] 02/02: Use local mathjax

Daniel Pocock pocock at moszumanska.debian.org
Fri Feb 19 11:49:11 UTC 2016


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

pocock pushed a commit to branch master
in repository r-cran-glmnet.

commit ad9a65b622170d070164a8ee99ec057e5ad9dc02
Author: Daniel Pocock <daniel at pocock.pro>
Date:   Fri Feb 19 12:32:34 2016 +0100

    Use local mathjax
---
 debian/control                         |  3 ++-
 debian/links                           |  1 +
 debian/patches/series                  |  1 +
 debian/patches/use-local-mathjax.patch | 13 +++++++++++++
 4 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 6060ac3..057c4c3 100644
--- a/debian/control
+++ b/debian/control
@@ -16,7 +16,8 @@ Architecture: any
 Depends: ${shlibs:Depends},
          ${misc:Depends},
          ${R:Depends},
-         r-cran-foreach
+         r-cran-foreach,
+         libjs-mathjax
 Description: Lasso and Elastic-Net Regularized Generalized Linear Models
  Extremely efficient procedures for fitting the entire lasso or elastic-net
  regularization path for linear regression, logistic and multinomial
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..2ee00d2
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+/usr/share/javascript/mathjax usr/lib/R/site-library/glmnet/doc/mathjax
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..43ce21d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use-local-mathjax.patch
diff --git a/debian/patches/use-local-mathjax.patch b/debian/patches/use-local-mathjax.patch
new file mode 100644
index 0000000..dbc54fc
--- /dev/null
+++ b/debian/patches/use-local-mathjax.patch
@@ -0,0 +1,13 @@
+diff --git a/inst/doc/glmnet_beta.html b/inst/doc/glmnet_beta.html
+index d879411..c731c1a 100644
+--- a/inst/doc/glmnet_beta.html
++++ b/inst/doc/glmnet_beta.html
+@@ -58,7 +58,7 @@ hljs.initHighlightingOnLoad();
+ </script>
+ 
+ <!-- MathJax scripts -->
+-<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
++<script type="text/javascript" src="mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+ </script>
+ 
+ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-glmnet.git



More information about the debian-science-commits mailing list