Skip to content
Snippets Groups Projects
Verified Commit 42693015 authored by Jake's avatar Jake
Browse files

use self-hosted mathjax

parent 86122af4
No related branches found
No related tags found
No related merge requests found
Pipeline #313207 passed
[submodule "mathjax"]
path = mathjax
url = https://github.com/mathjax/MathJax.git
.PHONY: html .PHONY: html
html: run html: build
.PHONY: publish .PHONY: publish
publish: run publish: build
.PHONY: run .PHONY: build
run: build: mathjax
make -C fgs cd fgs && python3 __main__.py
.PHONY: mathjax
mathjax:
[ ! -d output/mathjax ] && cp -vr mathjax/es5 output/mathjax || true
.PHONY: devserver .PHONY: devserver
devserver: devserver:
......
.PHONY: run .PHONY: run
run: run:
python3 __main__.py make -C ..
Subproject commit 600692ad9d3552cc25f85510d5797bc942ecc9f7
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<!-- <meta HTTP-EQUIV="REFRESH" content="500; url=#"> --> <!-- <meta HTTP-EQUIV="REFRESH" content="500; url=#"> -->
<link rel="preload" href="{{ siteurl }}/{{ theme.static_dir }}/css/{{ theme.css_file }}" as="style" /> <link rel="preload" href="{{ siteurl }}/{{ theme.static_dir }}/css/{{ theme.css_file }}" as="style" />
<link rel="stylesheet" type="text/css" href="{{ siteurl }}/{{ theme.static_dir }}/css/{{ theme.css_file }}" /> <link rel="stylesheet" type="text/css" href="{{ siteurl }}/{{ theme.static_dir }}/css/{{ theme.css_file }}" />
<script src="{{ siteurl }}/mathjax/tex-chtml.js" id="MathJax-script" async></script>
{#- TODO load javascript? -#} {#- TODO load javascript? -#}
{#- TODO og: meta tags -#} {#- TODO og: meta tags -#}
{#- TODO favicon -#} {#- TODO favicon -#}
...@@ -26,8 +27,6 @@ ...@@ -26,8 +27,6 @@
{% endif -%}#} {% endif -%}#}
{% block extra_head %}{% endblock extra_head %} {% block extra_head %}{% endblock extra_head %}
{% endblock head %} {% endblock head %}
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
</head> </head>
<body> <body>
<header> <header>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment