Package: release.debian.org
Severity: normal
User: release.debian....@packages.debian.org
Usertags: unblock

Please unblock package dolfinx

[ Reason ]

Privacy hacking on the mathjax url in documentation was incorrect, so
that mathematical equations in docs (in particular for demos) was not
correctly formatted (shown as raw TeX).

This patch fixes the privacy hack so documentation can be read
properly as intended.

[ Impact ]

Mathematical equations in docs are rendered as TeX texts, making them
almost useless. Documentation for a stable release should display
correctly.

[ Tests ]

debci tests are in place.
The documentation correction made here has been checked manually.

[ Risks ]

Patch is trivial, fixing documentation url.
No substantive code changes, so risks are negligible.

[ Checklist ]
  [x ] all changes are documented in the d/changelog
  [x ] I reviewed all changes and I approve them
  [x ] attach debdiff against the package in testing

[ Other info ]

This is the equivalent patch for dolfinx which has also been applied
to dolfin in unblock request Bug#989654

unblock dolfinx/2019.2.0~git20210130.c14cb0a-5
diff -Nru dolfinx-2019.2.0~git20210130.c14cb0a/debian/changelog 
dolfinx-2019.2.0~git20210130.c14cb0a/debian/changelog
--- dolfinx-2019.2.0~git20210130.c14cb0a/debian/changelog       2021-02-13 
02:28:09.000000000 +0100
+++ dolfinx-2019.2.0~git20210130.c14cb0a/debian/changelog       2021-06-09 
14:59:59.000000000 +0200
@@ -1,3 +1,10 @@
+dolfinx (2019.2.0~git20210130.c14cb0a-5) unstable; urgency=medium
+
+  * use triple-slash (file:///) for mathjax local url replacement to
+    make docs for demos properly legible.
+
+ -- Drew Parsons <dpars...@debian.org>  Wed, 09 Jun 2021 14:59:59 +0200
+
 dolfinx (2019.2.0~git20210130.c14cb0a-4) unstable; urgency=medium
 
   * update fenics:Upstream-Version to 2019.2.0~git20210116 to ensure
diff -Nru dolfinx-2019.2.0~git20210130.c14cb0a/debian/rules 
dolfinx-2019.2.0~git20210130.c14cb0a/debian/rules
--- dolfinx-2019.2.0~git20210130.c14cb0a/debian/rules   2021-02-13 
02:28:09.000000000 +0100
+++ dolfinx-2019.2.0~git20210130.c14cb0a/debian/rules   2021-06-09 
14:59:59.000000000 +0200
@@ -307,8 +307,8 @@
 
 override_dh_sphinxdoc-indep:
        dh_sphinxdoc -i
-       grep "https://cdn.mathjax.org/mathjax/latest/MathJax.js"; 
debian/dolfinx-doc/usr/share/doc/dolfinx-doc/* -r --files-with-matches | xargs 
sed 
"s|src=\"https://cdn.mathjax.org/mathjax/latest/MathJax.js|src=\"file://usr/share/javascript/mathjax/MathJax.js|g"
 -i
-       grep "https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js"; 
debian/dolfinx-doc/usr/share/doc/dolfinx-doc/* -r --files-with-matches | xargs 
sed 
"s|src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js|src=\"file://usr/share/javascript/mathjax/unpacked/latest.js|g"
 -i
+       grep "https://cdn.mathjax.org/mathjax/latest/MathJax.js"; 
debian/dolfinx-doc/usr/share/doc/dolfinx-doc/* -r --files-with-matches | xargs 
sed 
"s|src=\"https://cdn.mathjax.org/mathjax/latest/MathJax.js|src=\"file:///usr/share/javascript/mathjax/MathJax.js|g"
 -i
+       grep "https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js"; 
debian/dolfinx-doc/usr/share/doc/dolfinx-doc/* -r --files-with-matches | xargs 
sed 
"s|src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js|src=\"file:///usr/share/javascript/mathjax/unpacked/latest.js|g"
 -i
 
 # python module so files are already stripped by setup.py (setuptools)
 override_dh_dwz:

Reply via email to