56b47e2 cont. missed few things
All checks were successful
/ build (push) Successful in 8s

This commit is contained in:
Collin Lefeber 2025-04-29 16:38:37 -04:00
parent 56b47e24e4
commit 2c9c1f5b7c
3 changed files with 86 additions and 3 deletions

View file

@ -1,6 +1,11 @@
public/pyg.css: pygments_theme.txt
pygmentize -S "$(shell cat pygments_theme.txt)" -f html -a .codehilite > ./public/pyg.css
public/pyg.css: Makefile pygments_theme_dark.txt pygments_theme_light.txt
echo "@media (prefers-color-scheme: dark) {" > $@
pygmentize -S "$(shell cat pygments_theme_dark.txt)" -f html -a .codehilite >> $@
echo "}" >> $@
echo "@media (prefers-color-scheme: light) {" >> $@
pygmentize -S "$(shell cat pygments_theme_light.txt)" -f html -a .codehilite >> $@
echo "}" >> $@
.PHONY: all
all: