Skip to content

Commit 3f5060e

Browse files
committed
Better processing
1 parent 641be76 commit 3f5060e

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

Makefile

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
11
GUIDES = $(notdir $(wildcard guide/*.md))
22
HTML_GUIDES = $(addprefix public/,$(GUIDES:.md=.html))
3+
PANDOC_DEFAULT_OPTIONS = \
4+
-5 \
5+
-c css/screen.css \
6+
-B template/header.html \
7+
-A template/footer.html
8+
PANDOC_GUIDE_OPTIONS = \
9+
-B template/navigation.html \
10+
--toc
311

412
html: $(HTML_GUIDES)
513

14+
public/index.html : guide/index.md
15+
pandoc \
16+
$(PANDOC_DEFAULT_OPTIONS) \
17+
$< \
18+
-o $@
19+
620
public/%.html : guide/%.md
721
pandoc \
8-
-5 \
9-
-c css/screen.css \
10-
-B template/header.html \
11-
-A template/footer.html \
12-
--toc \
22+
$(PANDOC_DEFAULT_OPTIONS) \
23+
$(PANDOC_GUIDE_OPTIONS) \
1324
$< \
1425
-o $@
1526

public/css/screen.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ h1 a, h2 a, h3 a, h4 a{
3737
text-decoration: none;
3838
}
3939

40+
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover{
41+
text-decoration: underline;
42+
}
43+
4044
code.sourceCode span.kw { color: #C6C5FE; font-weight: bold; }
4145
code.sourceCode span.dt { color: #fff; }
4246
code.sourceCode span.dv { color: #FF73FD; }

0 commit comments

Comments
 (0)