Swap KaTeX from local to global#372
Conversation
|
@felixhekhorn I was thinking to do the exact same in a Qibo project (I could link the issue, but it's not yet public). On docs.rs it will work as much as
Automatically: you publish your projects on crates.io, with |
|
The trade-off between global injection and local one is that:
However, dropping |
as said above: I expect math to be almost everywhere re publish: mmm, it seems not super trivial to me, so let's split the discussion from here into a separate issue ... However, I take it that you, @alecandido, generally agree with the idea here and so I will merge this PR |
As ekore is at its kore a math package there are a lot of math formulas in the docs and we are using KaTeX to render them.
On
masterwe were using katexit for a dynamic injection of the KaTeX (HTML) header files. In practice they will appear everywhere which is annoying.So the idea here is to change to a global injection as is proposed here (with an updated KaTeX version).
Question is: will this work on docs.rs? Does someone of you know by chance @alecandido or @cschwan ? otherwise I guess the only way is to try and see what is happening.
This would require us to actually start publishing eko stuff to docs.rs - how is that done in practice? with our current layout there are 2 packages: ekore and ekors (which is the glue between python eko (i.e. numba) and Rust ekore) (+ #260 would introduce a third package:
dekoder).(Fixes to
rustify.share taken from #369 , which eventually should be rebased onto this PR)