From f2a92f4521f42f5dff83609f07ab6145e976c299 Mon Sep 17 00:00:00 2001 From: edoapra Date: Mon, 17 Aug 2020 16:54:34 -0700 Subject: [PATCH] build updates [ci skip] --- contrib/mkdocs/README.md | 7 ++++++- contrib/mkdocs/build_website.sh | 10 +++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/contrib/mkdocs/README.md b/contrib/mkdocs/README.md index 3794b00497..78b45a126d 100644 --- a/contrib/mkdocs/README.md +++ b/contrib/mkdocs/README.md @@ -13,6 +13,11 @@ python3 -m pip install --user -e . ``` +## Install the python-markdown-math plugin for MathJax (work in progress) + +``` +python3 -m pip install --user python-markdown-math +``` # Edit the configuration ``` mkdocs.yml @@ -94,4 +99,4 @@ python3 -m pip install markdown-katex ``` Not tried yet -* more in https://github.com/Python-Markdown/markdown/wiki/Third-Party-Extensions \ No newline at end of file +* more in https://github.com/Python-Markdown/markdown/wiki/Third-Party-Extensions diff --git a/contrib/mkdocs/build_website.sh b/contrib/mkdocs/build_website.sh index a5026013fd..2ff2d7c5f2 100755 --- a/contrib/mkdocs/build_website.sh +++ b/contrib/mkdocs/build_website.sh @@ -19,12 +19,16 @@ while read fname; do cp $fname "$fname".tmp mv tmptmp.txt $fname done <../mathfiles.txt -#cd .. +cd .. #mkdocs serve -cd ../nwchemgit.github.io +rm -rf nwchemgit.github.io_temp +git clone --depth 1 https://github.com/nwchemgit/nwchemgit.github.io nwchemgit.github.io_temp +cd nwchemgit.github.io_temp mkdocs -v gh-deploy --config-file ../mkdocs.yml --remote-branch master +cd .. +rm -rf nwchemgit.github.io_temp # restore svg bits -cd ../docs +cd docs while read fname; do ls "$fname" mv "$fname".tmp $fname