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.

19 lines
608 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:
6 years ago
@mkdir -p generated && \
$(CURL) $(PORTFOLIO) | $(PANDOC) \
--read markdown \
--write html \
--standalone \
--include-in-header $(HEADER) \
6 years ago
--output $(GENERATED_DIR)/portfolio.html && \
$(WEASYPRINT) --presentational-hints $(GENERATED_DIR)/portfolio.html $(GENERATED_DIR)/portfolio.pdf