Browse Source

adding the print making steps!

master
manetta 4 years ago
parent
commit
0f8d61b228
  1. 4
      .gitignore
  2. 17
      Makefile
  3. 6
      themes/basic/static/css/print.css

4
.gitignore

@ -0,0 +1,4 @@
output/
output/*
print/
print/*

17
Makefile

@ -70,4 +70,19 @@ publish:
"$(PELICAN)" "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(PUBLISHCONF)" $(PELICANOPTS)
.PHONY: html help clean regenerate serve serve-global devserver publish
.PHONY: html help clean regenerate serve serve-global devserver publish
pdfs:
pandoc --pdf-engine=weasyprint -c themes/basic/static/css/print.css content/text.md -o print/text.pdf
pandoc --pdf-engine=weasyprint -c themes/basic/static/css/print.css content/zabala_warning.md -o print/zabala_warning.pdf

6
themes/basic/static/css/print.css

@ -0,0 +1,6 @@
@page{
size:A4;
margin:10mm;
background-color:pink;
}
Loading…
Cancel
Save