From 0f8d61b2281bd3d248f9be224720d0f535a98e8e Mon Sep 17 00:00:00 2001 From: manetta Date: Fri, 13 Nov 2020 17:26:13 +0100 Subject: [PATCH] adding the print making steps! --- .gitignore | 4 ++++ Makefile | 17 ++++++++++++++++- themes/basic/static/css/print.css | 6 ++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 themes/basic/static/css/print.css diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..377f949 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +output/ +output/* +print/ +print/* diff --git a/Makefile b/Makefile index 79d4f2f..c9d7dab 100644 --- a/Makefile +++ b/Makefile @@ -70,4 +70,19 @@ publish: "$(PELICAN)" "$(INPUTDIR)" -o "$(OUTPUTDIR)" -s "$(PUBLISHCONF)" $(PELICANOPTS) -.PHONY: html help clean regenerate serve serve-global devserver publish \ No newline at end of file +.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 + + + + + + + + + + diff --git a/themes/basic/static/css/print.css b/themes/basic/static/css/print.css new file mode 100644 index 0000000..b38dab2 --- /dev/null +++ b/themes/basic/static/css/print.css @@ -0,0 +1,6 @@ +@page{ + size:A4; + margin:10mm; + background-color:pink; +} +