Fixes #6690: Configure le bon chemin pour les extensions MathJax #6691
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.
Depuis le passage de MathJax via CDN à MathJax en local (#6606), le script
MathJax.js
n'arrive pas à charger les fichiers complémentaires. Normalement, la détection de la racine devrait se faire automatiquement : le script est/static/js/MathJax.js
donc les extensions se trouvent aussi dans/static/js
. (Citation de la documentation : "MathJax locates the <script> tag that loaded the MathJax.js file, and sets the MathJax.Hub.config.root value to reflect the location of the MathJax root directory.") Ça ne fonctionne pas en production car le nom du script est hashé :MathJax.e380311aa78d.js
au lieu deMathJax.js
. Cela se corrige facilement, il suffit de définir explicitement le chemin dans la configuration comme le fait cette PR.QA : Mettre cette PR sur la bêta et vérifier que les requêtes vers les fichiers complémentaires n'échouent pas.