From ef1ef50058482772f9444346da7989da37cacd6f Mon Sep 17 00:00:00 2001
From: "mathias.chouet" <mathias.chouet@irstea.fr>
Date: Wed, 29 May 2019 11:29:23 +0200
Subject: [PATCH] =?UTF-8?q?Fix=20#217=20mathjax:=20copie=20des=20fichiers?=
 =?UTF-8?q?=20n=C3=A9cessaires=20seulement?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 package.json        | 2 +-
 rsync-mathjax-files | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
 create mode 100644 rsync-mathjax-files

diff --git a/package.json b/package.json
index 475233c07..0c1d5e3f4 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,7 @@
     "e2e": "ng e2e",
     "e2equick": "ng e2e --dev-server-target= --baseUrl=http://localhost:4200",
     "jalhyd": "rm node_modules/jalhyd && cd ../jalhyd && npm run build && cd ../nghyd && npm install ../jalhyd",
-    "mathjax": "rsync -az --delete node_modules/mathjax docs-fr/javascripts",
+    "mathjax": "rsync -az --delete `cat rsync-mathjax-files` docs-fr/javascripts/mathjax",
     "mkdocs": "npm run mathjax && find docs-fr/javascripts/ -name '*.md' -type f -delete && python3 -m mkdocs build",
     "preprocess": "node preprocessors.js && npm run mkdocs",
     "viz": "tsviz -recursive src/ nghyd_class_diagram.png",
diff --git a/rsync-mathjax-files b/rsync-mathjax-files
new file mode 100644
index 000000000..6389b3765
--- /dev/null
+++ b/rsync-mathjax-files
@@ -0,0 +1,3 @@
+node_modules/mathjax/MathJax.js
+node_modules/mathjax/config
+node_modules/mathjax/jax
\ No newline at end of file
-- 
GitLab