This commit is contained in:
parent
2c9c1f5b7c
commit
2246b00767
2 changed files with 39 additions and 5 deletions
8
Makefile
8
Makefile
|
@ -1,3 +1,6 @@
|
|||
.PHONY: all
|
||||
all: public/pyg.css
|
||||
python3 ./main.py
|
||||
|
||||
public/pyg.css: Makefile pygments_theme_dark.txt pygments_theme_light.txt
|
||||
echo "@media (prefers-color-scheme: dark) {" > $@
|
||||
|
@ -6,8 +9,3 @@ public/pyg.css: Makefile pygments_theme_dark.txt pygments_theme_light.txt
|
|||
echo "@media (prefers-color-scheme: light) {" >> $@
|
||||
pygmentize -S "$(shell cat pygments_theme_light.txt)" -f html -a .codehilite >> $@
|
||||
echo "}" >> $@
|
||||
|
||||
.PHONY: all
|
||||
all:
|
||||
python3 ./main.py
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue