MathJax: bye bye CDN, welcome npm package #6606
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR liée au sujet sur le forum concernant l'intégration des sources externes
J'applique le même principe que pour FontAwesome et j'utilise le paquet npm de MathJax dans sa version 2.7.1 pour être sûr de ne rien casser. On a besoin des fichiers
MathJax.js
,localization/fr/fr.js
etconfig/TeX-AMS_HTML.js
(en gardant cette arborescence) donc pour faire simple je prends tous les fichiers du dossierunpacked
du paquet npm et je les mets dansdist/js
. À terme il faudra vraiment migrer vers un système plus moderne que Gulp pour la gestion des ressources CSS et JS, mais en attendant ça me semble good enough.QA :
source zdsenv/bin/activate && make update && make zmd-start && make run-back
MathJax.js
,fr.js
etTeX-AMS_HTML.js
sont bien réussies