Replace Torchlight with native Rouge syntax highlighting - #568
Replace Torchlight with native Rouge syntax highlighting#568andrewmcodes with Copilot wants to merge 11 commits into
Conversation
Co-authored-by: andrewmcodes <18423853+andrewmcodes@users.noreply.github.com>
Co-authored-by: andrewmcodes <18423853+andrewmcodes@users.noreply.github.com>
|
@copilot resolve the merge conflicts in this pull request |
Co-authored-by: andrewmcodes <18423853+andrewmcodes@users.noreply.github.com>
Resolved and merged |
|
@copilot your syntax highlighting theme should be similar to OneDark Pro instead of this custom bullshit you did. I need WAY more colors in my syntax highlighting. |
Co-authored-by: andrewmcodes <18423853+andrewmcodes@users.noreply.github.com>
Co-authored-by: andrewmcodes <18423853+andrewmcodes@users.noreply.github.com>
Updated in |
|
@copilot the new theme is way better, but can we tweak it just slightly to better fit in with the website theme? |
Co-authored-by: andrewmcodes <18423853+andrewmcodes@users.noreply.github.com>
Done in |
andrewmcodes
left a comment
There was a problem hiding this comment.
None of the torchlight cache files should be added so keep the gitignore entry
|
@copilot there are torchlight-cache/* files in the diff that shouldn't be. |
Co-authored-by: andrewmcodes <18423853+andrewmcodes@users.noreply.github.com>
Fixed in |
This PR removes the Torchlight API dependency and migrates syntax highlighting to Bridgetown’s built-in Rouge pipeline. The goal is to keep code rendering quality while eliminating token/config/CI coupling to an external highlighter.
Highlighting pipeline migration
bridgetown.config.ymlfromhighlighter: ""tohighlighter: rouge.plugins/builders/torchlight.rb,torchlight.config.cjs).src/_posts/_defaults.yml).Code block styling parity on Rouge output
pre.torchlight/fallback styling with Rouge-aware selectors:.highlighter-rouge .highlight pre.highlightpre:not(.highlight)fallback.k,.s*,.c*,.na/.nf/.nc,.gd/.gi) using existing design tokens.Dependency and secret surface cleanup
@torchlight-api/torchlight-clifrompackage.jsonand lockfile.TORCHLIGHT_TOKENusage from CI workflows andfnox.toml..torchlight-cache/ignore entry.Documentation and operational updates
mise.tomlcomments to reflect Rouge-first behavior and remove Torchlight/token rotation references.