Skip to content

Commit dc8f7d9

Browse files
committed
Switch doc build process to pandoc using a Makefile
1 parent 4a358e0 commit dc8f7d9

File tree

5 files changed

+92
-1303
lines changed

5 files changed

+92
-1303
lines changed

doc/Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
PANDOC = pandoc
2+
MANSECTION = 1
3+
NAME=testssl
4+
5+
all: $(NAME).$(MANSECTION) $(NAME).$(MANSECTION).html
6+
7+
clean:
8+
rm -f $(NAME).$(MANSECTION) $(NAME).$(MANSECTION).html
9+
10+
$(NAME).$(MANSECTION): $(NAME).$(MANSECTION).md
11+
$(PANDOC) --standalone $(PANDOCFLAGS) --to man $(NAME).$(MANSECTION).md -o $@
12+
13+
$(NAME).$(MANSECTION).html: template.html $(NAME).$(MANSECTION).md
14+
$(PANDOC) --standalone $(PANDOCFLAGS) --to html5 --template template.html $(NAME).$(MANSECTION).md -o $@

doc/template.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>$title$</title>
6+
<style type='text/css' media='all'>
7+
body {
8+
margin: 0;
9+
padding: 0 5ex;
10+
font-size: 14px;
11+
font-family: monospace;
12+
text-align: justify;
13+
}
14+
h2, h3, h4, h5, h6 {
15+
color: #030201;
16+
}
17+
h2 {
18+
font-size: 16px;
19+
}
20+
h3 {
21+
font-size: 15px;
22+
margin-left: 4ex;
23+
}
24+
p, pre, ul, ol, dl {
25+
margin-left: 8ex;
26+
}
27+
code {
28+
font-weight: bold;
29+
color:#131211;
30+
}
31+
li p {
32+
margin-left: 0;
33+
}
34+
pre > code {
35+
display: block;
36+
padding: 0;
37+
white-space: pre-line;
38+
}
39+
ul > li > ul, ul > li > ol {
40+
margin-left: 0;
41+
}
42+
</style>
43+
</head>
44+
<body>
45+
$body$
46+
</body>
47+
</html>

0 commit comments

Comments
 (0)