Add css-include setup for html template

This commit is contained in:
Matthias Beyer 2016-01-11 18:00:56 +01:00
parent e4ee7891a4
commit 4eabdc19aa

View file

@ -18,15 +18,17 @@ SETTING_FONTSIZE=11pt
## Source directory ## Source directory
SRC_DIR=$(shell pwd)/src SRC_DIR=$(shell pwd)/src
## Templates
TEMPLATES=$(shell pwd)/templates
## CSS directory ## CSS directory
CSS_DIR=$(SRC_DIR)/css CSS_DIR=$(TEMPLATES)/css
CSS_SRC=$(shell find $(CSS_DIR) -type f -name "*.css")
CSS_INCLUDES=$(foreach x, $(CSS_SRC), --variable css=$(x))
## All markdown files in the working directory ## All markdown files in the working directory
export SRC=$(shell find $(SRC_DIR) -name "*.md" | sort) export SRC=$(shell find $(SRC_DIR) -name "*.md" | sort)
## Templates
TEMPLATES=$(shell pwd)/templates
DOCUMENT_SETTINGS_PDF= \ DOCUMENT_SETTINGS_PDF= \
--listings \ --listings \
--variable fontsize=$(SETTING_FONTSIZE) \ --variable fontsize=$(SETTING_FONTSIZE) \
@ -41,6 +43,7 @@ DOCUMENT_SETTINGS_PDF= \
--variable geometry=portrait --variable geometry=portrait
DOCUMENT_SETTINGS_HTML= \ DOCUMENT_SETTINGS_HTML= \
$(CSS_INCLUDES) \
--variable lang=de \ --variable lang=de \
--variable lof=true \ --variable lof=true \
--variable lol=true \ --variable lol=true \