Skip to content

Commit

Permalink
N'utilise plus un CDN pour MathJax (#6606)
Browse files Browse the repository at this point in the history
  • Loading branch information
Situphen committed Apr 20, 2024
1 parent a92df80 commit bcf8e53
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Gulpfile.js
Expand Up @@ -141,7 +141,8 @@ function jsPackages() {
require.resolve('moment/locale/fr.js'),
require.resolve('chartjs-adapter-moment/dist/chartjs-adapter-moment.min.js'),
require.resolve('chart.js/dist/chart.min.js'),
require.resolve('easymde/dist/easymde.min.js')
require.resolve('easymde/dist/easymde.min.js'),
path.resolve('node_modules/mathjax/unpacked/**')
], { sourcemaps: true })
.pipe(gulp.dest('dist/js/', { sourcemaps: '.' }))
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -42,6 +42,7 @@
"gulp-terser-js": "5.2.2",
"gulp.spritesmith": "6.13.0",
"jquery": "3.7.1",
"mathjax": "2.7.1",
"moment": "2.30.1",
"normalize.css": "8.0.1",
"postcss": "8.4.35"
Expand Down
8 changes: 2 additions & 6 deletions templates/mathjax.html
@@ -1,6 +1,2 @@
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?locale=fr&config=TeX-AMS_HTML&delayStartupUntil=configured"
integrity="sha384-Ra6zh6uYMmH5ydwCqqMoykyf1T/+ZcnOQfFPhDrp2kI4OIxadnhsvvA2vv9A7xYv"
crossorigin="anonymous"
async>
</script>
{% load static %}
<script src="{% static "js/MathJax.js" %}?locale=fr&config=TeX-AMS_HTML&delayStartupUntil=configured" async></script>
5 changes: 5 additions & 0 deletions yarn.lock
Expand Up @@ -5381,6 +5381,11 @@ matchdep@^2.0.0:
resolve "^1.4.0"
stack-trace "0.0.10"

mathjax@2.7.1:
version "2.7.1"
resolved "https://registry.yarnpkg.com/mathjax/-/mathjax-2.7.1.tgz#c82d2f853b2f58f738e3355329adf0b2d8f8face"
integrity sha512-zHrO6dTaHXquznvmSKVQhla1A2iQl/jhzOf8hqV7cEhYXcvNHyHf0aFJNFeqwY1oVk3WQGziQOa2t4K/aZCNMQ==

mdn-data@2.0.14:
version "2.0.14"
resolved "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz"
Expand Down

0 comments on commit bcf8e53

Please sign in to comment.