mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-29 04:49:44 +01:00
Merge branch 'k0lter-doc-fixes' into 3.1dev
This commit is contained in:
commit
ab81558ba4
14
doc/Makefile
Normal file
14
doc/Makefile
Normal 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
47
doc/template.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user