Generating portfolios from pads again!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
600 B

CONTAINER := debian:weasyprint
CURL := curl -sSL
PANDOC := pandoc
GENERATED_DIR := generated
HEADER := header.html
PORTFOLIO := https://pad.vvvvvvaria.org/solitude.portfolio/export/txt
STYLES := styles.css
WEASYPRINT := weasyprint -s $(STYLES)
portfolio:
@mkdir -p generated
@$(CURL) $(PORTFOLIO) | $(PANDOC) \
--read markdown \
--write html \
--standalone \
--include-in-header $(HEADER) \
--output $(GENERATED_DIR)/portfolio.html
@$(WEASYPRINT) --presentational-hints $(GENERATED_DIR)/portfolio.html $(GENERATED_DIR)/portfolio.pdf