Skip to content

Commit

Permalink
Better processing
Browse files Browse the repository at this point in the history
  • Loading branch information
felixge committed Mar 29, 2011
1 parent 641be76 commit 3f5060e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
21 changes: 16 additions & 5 deletions Makefile
@@ -1,15 +1,26 @@
GUIDES = $(notdir $(wildcard guide/*.md)) GUIDES = $(notdir $(wildcard guide/*.md))
HTML_GUIDES = $(addprefix public/,$(GUIDES:.md=.html)) 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) html: $(HTML_GUIDES)


public/index.html : guide/index.md
pandoc \
$(PANDOC_DEFAULT_OPTIONS) \
$< \
-o $@

public/%.html : guide/%.md public/%.html : guide/%.md
pandoc \ pandoc \
-5 \ $(PANDOC_DEFAULT_OPTIONS) \
-c css/screen.css \ $(PANDOC_GUIDE_OPTIONS) \
-B template/header.html \
-A template/footer.html \
--toc \
$< \ $< \
-o $@ -o $@


Expand Down
4 changes: 4 additions & 0 deletions public/css/screen.css
Expand Up @@ -37,6 +37,10 @@ h1 a, h2 a, h3 a, h4 a{
text-decoration: none; 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.kw { color: #C6C5FE; font-weight: bold; }
code.sourceCode span.dt { color: #fff; } code.sourceCode span.dt { color: #fff; }
code.sourceCode span.dv { color: #FF73FD; } code.sourceCode span.dv { color: #FF73FD; }
Expand Down

0 comments on commit 3f5060e

Please sign in to comment.