init
This commit is contained in:
21
Makefile
Normal file
21
Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
all: html
|
||||
|
||||
help:
|
||||
@echo 'Run without target to build all (html, rss)'
|
||||
@echo Available targets:
|
||||
@echo 'html render HTML'
|
||||
@echo 'serve serve site on localhost'
|
||||
@echo 'css <theme> generate Pygments stylesheet'
|
||||
|
||||
html:
|
||||
python rst_blg.py
|
||||
|
||||
serve:
|
||||
http-server ./build
|
||||
|
||||
css:
|
||||
mkdir -p assets/css/pygments
|
||||
pygmentize -f html -S $(filter-out $@,$(MAKECMDGOALS)) -a .highlight > assets/css/pygments/$(filter-out $@,$(MAKECMDGOALS)).css
|
||||
|
||||
%:
|
||||
@:
|
Reference in New Issue
Block a user