Skip to content
Browse files

Better processing

  • Loading branch information...
1 parent 641be76 commit 3f5060eb16a04a4c2587f623cbbdf0c88f90226c @felixge committed Mar 29, 2011
Showing with 20 additions and 5 deletions.
  1. +16 −5 Makefile
  2. +4 −0 public/css/screen.css
View
21 Makefile
@@ -1,15 +1,26 @@
GUIDES = $(notdir $(wildcard guide/*.md))
HTML_GUIDES = $(addprefix public/,$(GUIDES:.md=.html))
+PANDOC_DEFAULT_OPTIONS = \
+ -5 \
+ -c css/screen.css \
+ -B template/header.html \
+ -A template/footer.html
+PANDOC_GUIDE_OPTIONS = \
+ -B template/navigation.html \
+ --toc
html: $(HTML_GUIDES)
+public/index.html : guide/index.md
+ pandoc \
+ $(PANDOC_DEFAULT_OPTIONS) \
+ $< \
+ -o $@
+
public/%.html : guide/%.md
pandoc \
- -5 \
- -c css/screen.css \
- -B template/header.html \
- -A template/footer.html \
- --toc \
+ $(PANDOC_DEFAULT_OPTIONS) \
+ $(PANDOC_GUIDE_OPTIONS) \
$< \
-o $@
View
4 public/css/screen.css
@@ -37,6 +37,10 @@ h1 a, h2 a, h3 a, h4 a{
text-decoration: none;
}
+h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover{
+ text-decoration: underline;
+}
+
code.sourceCode span.kw { color: #C6C5FE; font-weight: bold; }
code.sourceCode span.dt { color: #fff; }
code.sourceCode span.dv { color: #FF73FD; }

0 comments on commit 3f5060e

Please sign in to comment.
Something went wrong with that request. Please try again.