software-mansion / scarb

The Cairo package manager
http://docs.swmansion.com/scarb/
MIT License
191 stars 71 forks source link

Research adding support for `cairo` to mdbook #1457

Closed piotmag769 closed 3 months ago

piotmag769 commented 4 months ago

We can see how cairo-book did it, tagged with // TODO(#1457

Arcticae commented 3 months ago

This can also be added by defining a language for https://highlightjs.org/ - it's the mechanism that mdbook uses for syntax highlighting. We could use fork rust definition and modify it for cairo (shouldn't be too much of a problem), and then integrate it into mdbook - see example implementation

https://highlightjs.readthedocs.io/en/latest/language-guide.html