-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Online documentation does not render table/TeX for DaphneDSL trig functions #673
Comments
Hi @AlexRTer github has its own md flavor, while we use mkdocs with the material theme to build our html representation, in the best case we find sth that works for both so that it can be rendered for both. It seems that both mkdocs-material and github support mathjax https://squidfunk.github.io/mkdocs-material/reference/math/ KR |
* enable mathjax * fix indent in yml, minor doc fixes * minor clarification This PR closes #673. The current online documentation is generated using mkdocs with the material theme. Thus, MathJax can simply be enabled in mkdocs.yml and needs to have the corresponding JavaScript runtimes linked. This PR adds the default setup suggested at https://squidfunk.github.io/mkdocs-material/reference/math/ without further customization (instant loading is not enabled in mkdocs.yml so the corresponding section in mathjax.js has been left out for now). MathJax allows for TeX expressions to be rendered properly in the online documentation using $...$, \(...\) for inline- and $$...$$, \[...\] for block-syntax. Please note that the block syntax requires to have the enclosing $$ on separate lines each (https://squidfunk.github.io/mkdocs-material/reference/math/#using-block-syntax). On Github, most of these expressions are rendered properly. There are some exceptions, e.g. spacing $... \, ...$.
The table and TeX snippets for
Trigonometric/Hyperbolic
functions at https://github.com/daphne-eu/daphne/blob/main/doc/DaphneDSL/Builtins.md#trigonometrichyperbolic display as expected on github.However, the online documentation https://daphne-eu.github.io/daphne/DaphneDSL/Builtins/ does not render either of them correctly and instead displays mostly unformatted text and symbols.
The text was updated successfully, but these errors were encountered: