-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
man-template.html
95 lines (91 loc) · 1.63 KB
/
man-template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!doctype html>
<title>{{.Name}}({{.Section}}) - {{.Title}}</title>
<meta charset="utf-8">
<style>
body {
margin: 0;
font: 15px/1.4 -apple-system,Segoe UI,Helvetica,Arial,sans-serif;
}
pre, code, var, dt, .man-head, [id="synopsis"] + p {
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;
}
header, footer {
padding: .5em 2em;
}
.man-head {
color: #999;
padding: 0;
width: 100%;
float: left;
list-style-type: none;
}
header .man-head {
text-transform: uppercase;
}
.man-head li {
width: 33%;
float: left;
}
.tl { text-align: left }
.tc { text-align: center }
.tr { text-align: right; float: right }
article {
max-width: 110ex;
margin: 4em auto 2em;
}
h1 {
font-size: 1em;
font-weight: normal;
}
h2 {
text-transform: uppercase;
}
code {
color: darkslategray;
font-weight: bold;
}
var {
color: orangered;
font-weight: normal;
font-style: normal;
}
dt {
margin: .5em 0;
}
dd {
margin-bottom: 1em;
}
pre, [id="synopsis"] + p {
background: #eee;
padding: 1em 1.5em;
}
[id="synopsis"] + p {
white-space: nowrap;
overflow-x: auto;
}
pre code {
color: inherit;
font-weight: inherit;
}
var::before { content: "<" }
var::after { content: ">" }
a:link, a:hover, a:visited { color: blue }
</style>
<header>
<ol class="man-head">
<li class="tl">{{.Name}}({{.Section}})</li>
<li class="tc">{{.Manual}}</li>
<li class="tr">{{.Name}}({{.Section}})</li>
</ol>
</header>
<article>
<h1>{{.Title}}</h1>
{{.Contents}}
</article>
<footer>
<ol class="man-head">
<li class="tl">{{.Version}}</li>
<li class="tc">{{.Date}}</li>
<li class="tr"></li>
</ol>
</footer>