Samasaur1 / samasaur1.github.io

the jekyll source for my website
https://samasaur1.github.io/
3 stars 0 forks source link

use treesitter for highlighting instead of rouge #40

Open Samasaur1 opened 1 year ago

Samasaur1 commented 1 year ago

https://andrewtbiehl.com/blog/jekyll-tree-sitter https://adrian.schoenig.me/blog/2022/05/27/tree-sitter-highlighting-in-jekyll/

Samasaur1 commented 4 months ago

Okay, so:

The first link now links to a Jekyll plugin. When I try to add this to Nix for my site, it fails. The plugin is made up of a ruby library and a rust library. I figure I can build them as separate derivations. The rust one still fails. It turns out that vendoring tree-sitter-cli (a dependency of the rust project) gives you a vendored copy that is missing necessary files.

Samasaur1 commented 4 months ago

Similar vendoring issue

https://github.com/rust-lang/cargo/issues/8885

Samasaur1 commented 4 months ago

I opened an issue on the Cargo repository: https://github.com/rust-lang/cargo/issues/14034