Use one shared html file for the syntax highlighting

Using Olivier's idea to check the meta tag, we can distinguish rustdoc
from "the rest". The html is included in mdbook by directly by
symlinking head.hbs.
This commit is contained in:
Simon Hausmann 2021-07-07 15:50:48 +02:00 committed by Simon Hausmann
parent 8003c06f3a
commit ad321c7735
8 changed files with 58 additions and 64 deletions

View file

@ -2,5 +2,5 @@
{% block scripts %}
{{ super() }}
{% include "../../../../docs/html/sixtyfps-docs-preview.html" %}
{% include "../../../../docs/html/sixtyfps-docs-highlight-cpp.html" %}
{% include "../../../../docs/html/sixtyfps-docs-highlight.html" %}
{% endblock %}