From 189ff264e52e945189b1fc3b6369c75b38bdf4fc Mon Sep 17 00:00:00 2001 From: David Cottrell Date: Wed, 19 Sep 2018 19:53:12 +0100 Subject: [PATCH 1/2] Add test example to show how to test locally --- local_server_test.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 local_server_test.sh diff --git a/local_server_test.sh b/local_server_test.sh new file mode 100755 index 0000000000..698dc40cbd --- /dev/null +++ b/local_server_test.sh @@ -0,0 +1,4 @@ +#!/bin/sh +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $DIR/test +live-server From 11ea56a5c475b8d0b04d0679b35ac3e18cd50047 Mon Sep 17 00:00:00 2001 From: David Cottrell Date: Wed, 19 Sep 2018 20:14:50 +0100 Subject: [PATCH 2/2] Create better simple test. The wiki and notes should ideally point to this. It is faster by far. --- simple_test/README.md | 1 + simple_test/index.html | 13 +++++++++++++ local_server_test.sh => simple_test/test.sh | 4 ++-- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 simple_test/README.md create mode 100644 simple_test/index.html rename local_server_test.sh => simple_test/test.sh (74%) diff --git a/simple_test/README.md b/simple_test/README.md new file mode 100644 index 0000000000..05f4826b9e --- /dev/null +++ b/simple_test/README.md @@ -0,0 +1 @@ +Run this and if you have live-server (`npm install -g live-server`) installed, a local url should open up and you should see MathJax working or not. If it is note working, open the debugger (Chrome debugger is best) and view the console. diff --git a/simple_test/index.html b/simple_test/index.html new file mode 100644 index 0000000000..00470bd90d --- /dev/null +++ b/simple_test/index.html @@ -0,0 +1,13 @@ + + + MathJax Test + + + + + +

MathJax Test

+
+ \[ \Phi(x) = \frac{1}{\sqrt{2 \pi}} \int_{-\infty}^x e^{-\xi^2/2}\; d\xi \] + + diff --git a/local_server_test.sh b/simple_test/test.sh similarity index 74% rename from local_server_test.sh rename to simple_test/test.sh index 698dc40cbd..3d0675c6df 100755 --- a/local_server_test.sh +++ b/simple_test/test.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -cd $DIR/test +cd $DIR live-server