summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-01-11 18:00:56 +0100
committerMatthias Beyer <mail@beyermatthias.de>2016-01-11 18:04:29 +0100
commit4eabdc19aa6abe9207007f6e400ba90beb0838ce (patch)
treee6469d382f2247a7d72f15b61ba35cc9755ac7b6 /doc
parente4ee7891a480c387f3702497e0ab571f7512b1cc (diff)
Add css-include setup for html template
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 4a546342..495c043b 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -18,15 +18,17 @@ SETTING_FONTSIZE=11pt
## Source directory
SRC_DIR=$(shell pwd)/src
+## Templates
+TEMPLATES=$(shell pwd)/templates
+
## 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
export SRC=$(shell find $(SRC_DIR) -name "*.md" | sort)
-## Templates
-TEMPLATES=$(shell pwd)/templates
-
DOCUMENT_SETTINGS_PDF= \
--listings \
--variable fontsize=$(SETTING_FONTSIZE) \
@@ -41,6 +43,7 @@ DOCUMENT_SETTINGS_PDF= \
--variable geometry=portrait
DOCUMENT_SETTINGS_HTML= \
+ $(CSS_INCLUDES) \
--variable lang=de \
--variable lof=true \
--variable lol=true \