From 3c7adf4a5d7ee750745bf0095bd6c07716d6945e Mon Sep 17 00:00:00 2001
From: David Dorchies <david.dorchies@irstea.fr>
Date: Wed, 3 Oct 2018 17:13:52 +0200
Subject: [PATCH] #34 Add mkdocs compilation in npm run preprocess. Remove
 MathJax references from index.html

---
 package.json   |  2 +-
 src/index.html | 15 ---------------
 2 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/package.json b/package.json
index 21928745a..27c899b8c 100644
--- a/package.json
+++ b/package.json
@@ -13,7 +13,7 @@
     "jalhyd": "rm -rf node_modules/jalhyd; cd ../jalhyd; npm run package; cd ../nghyd; npm install ../jalhyd/jalhyd-1.0.0.tgz;",
     "mathjax": "rsync -az --delete node_modules/mathjax src/assets;",
     "mkdocs": "python3 -m mkdocs build",
-    "preprocess": "node preprocessors.js; npm run mathjax;"
+    "preprocess": "node preprocessors.js; npm run mathjax; npm run mkdocs;"
   },
   "private": true,
   "dependencies": {
diff --git a/src/index.html b/src/index.html
index 5d093f8fc..3f118aead 100644
--- a/src/index.html
+++ b/src/index.html
@@ -31,21 +31,6 @@
     }
   </style>
 -->
-
-  <!-- MathJax-->
-  <!-- config locale qui s'ajoute à la config par défaut (ajoute les expressions LateX inline avec $....$) -->
-  <script type="text/x-mathjax-config">
-  MathJax.Hub.Config({
-    tex2jax: {
-      inlineMath: [['$','$'], ['\\(','\\)']],
-      skipTags: ['script', 'noscript', 'style', 'textarea', 'pre']
-    }
-  });
-  </script>
-
-  <!-- récupération du code + configuration par défaut -->
-  <script type="text/javascript" src="assets/mathjax/MathJax.js?config=TeX-AMS_CHTML"></script>
-  <!-- /MathJax-->
 </head>
 
 <body>
-- 
GitLab