This commit is contained in:
parent
56b47e24e4
commit
2c9c1f5b7c
3 changed files with 86 additions and 3 deletions
9
Makefile
9
Makefile
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue