HowTo

Add javascrtip

Mathjax.js

Enable Mathjax.js

  • add below configuration at mkdocs
extra_javascript:
    - https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML

Change math syntax from \\( ... \\) to \$ ... \$

window.MathJax = {
    tex2jax: {
      inlineMath: [["$","$"]],
      displayMath: [["$$", "$$"]]
    },
    TeX: {
        TagSide: "right",
        TagIndent: ".8em",
        MultLineWidth: "85%",
        unicode: {
            fonts: "STIXGeneral,'Arial Unicode MS'"
        }
    },
    CommonHTML: {
        scale: 90
    },
    showProcessingMessages: false,
    messageStyle: "none"
};

Deploy

cd home
mkdocs build
cd site
git add .
git commit -m
git push
open https://resoliwan.github.io