File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ function create_target_dir(){
88function copy_resources() {
99 cp ${DATA_DIR} /mkdocs.yml ${TARGET_DIR} /mkdocs.yml
1010 cp -r ${DATA_DIR} /docs/images ${TARGET_DIR} /docs
11+ cp -r ${DATA_DIR} /docs/javascripts ${TARGET_DIR} /docs/javascripts
1112 cp -r ${DATA_DIR} /docs/stylesheets ${TARGET_DIR} /docs/stylesheets
1213}
1314
@@ -19,7 +20,12 @@ function copy_resources() {
1920# with some nice features for the HTML version.
2021function fix_mkdocs_yml() {
2122 mv ${TARGET_DIR} /mkdocs.yml ${TARGET_DIR} /mkdocs.ori.yml
22- sed -e ' s/linenums_style: table/linenums_style: pymdownx-inline/g' ${TARGET_DIR} /mkdocs.ori.yml > ${TARGET_DIR} /mkdocs.yml
23+ sed -e ' s/linenums_style: table/linenums_style: pymdownx-inline/g' ${TARGET_DIR} /mkdocs.ori.yml | \
24+ sed -e ' s|javascripts/mathjax.js|https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML|g' | \
25+ sed -e ' s| - https://polyfill.io/v3/polyfill.min.js?features=es6||g' | \
26+ sed -e ' s| - https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js||g' | \
27+ sed -e ' s/pymdownx.arithmatex:/pymdownx.arithmatex/g' | \
28+ sed -e ' s/ generic: true//g' > ${TARGET_DIR} /mkdocs.yml
2329}
2430
2531function create_cover() {
You can’t perform that action at this time.
0 commit comments