Merge branch 'k0lter-doc-fixes' into 3.1dev

This commit is contained in:
Dirk 2022-04-01 12:52:28 +02:00
commit ab81558ba4
2 changed files with 61 additions and 0 deletions

14
doc/Makefile Normal file
View File

@ -0,0 +1,14 @@
PANDOC = pandoc
MANSECTION = 1
NAME=testssl
all: $(NAME).$(MANSECTION) $(NAME).$(MANSECTION).html
clean:
rm -f $(NAME).$(MANSECTION) $(NAME).$(MANSECTION).html
$(NAME).$(MANSECTION): $(NAME).$(MANSECTION).md
$(PANDOC) --standalone --to man $(NAME).$(MANSECTION).md -o $@
$(NAME).$(MANSECTION).html: template.html $(NAME).$(MANSECTION).md
$(PANDOC) --standalone --to html5 --template template.html $(NAME).$(MANSECTION).md -o $@

47
doc/template.html Normal file
View File

@ -0,0 +1,47 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>$title$</title>
<style type='text/css' media='all'>
body {
margin: 0;
padding: 0 5ex;
font-size: 14px;
font-family: monospace;
text-align: justify;
}
h2, h3, h4, h5, h6 {
color: #030201;
}
h2 {
font-size: 16px;
}
h3 {
font-size: 15px;
margin-left: 4ex;
}
p, pre, ul, ol, dl {
margin-left: 8ex;
}
code {
font-weight: bold;
color:#131211;
}
li p {
margin-left: 0;
}
pre > code {
display: block;
padding: 0;
white-space: pre-line;
}
ul > li > ul, ul > li > ol {
margin-left: 0;
}
</style>
</head>
<body>
$body$
</body>
</html>