Skip to content

Commit f756b24

Browse files
committed
Update style
1 parent d4318aa commit f756b24

File tree

6 files changed

+1182
-1092
lines changed

6 files changed

+1182
-1092
lines changed

1/index.html

Lines changed: 178 additions & 171 deletions
Large diffs are not rendered by default.

3/index.html

Lines changed: 798 additions & 791 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,16 @@ convert = $(man2html) > "$@"
2929
template = <!doctype html>\n<html lang="en">\n\
3030
\40<head>\n\
3131
\40\40\40<meta charset="utf-8">\n\
32+
\40\40\40<meta name="viewport" content="width=device-width, initial-scale=1.0">\n\
3233
\40\40\40<title>%s</title>\n\
3334
\40\40\40<link rel="stylesheet" href="%s">\n\
3435
\40</head>\n\
3536
\40<body>\n\
36-
\40\40\40<main>\n\
37-
\40\40\40\40\40<h1>%s</h1>\n%s\n\
37+
\40\40\40<header>\n\
38+
\40\40\40\40\40%s\n\
39+
\40\40\40\40\40<h1>%s</h1>\n\
40+
\40\40\40</header>\n\
41+
\40\40\40<main>\n%s\n\
3842
\40\40\40</main>\n\
3943
\40</body>\n</html>\n
4044

@@ -73,11 +77,13 @@ clean:
7377

7478
index.html: $(addsuffix /index.html,$(dirs))
7579
$(desc) \
76-
printf '$(template)' "POSIX Manpages" "style.css" "POSIX Manpages" "$$(\
80+
printf '$(template)' "POSIX man pages" "style.css" "POSIX" "Manual Pages" "$$(\
81+
printf ' <table class="sections">\n <thead><tr><th>Section</th><th>Title</th></tr></thead>\n <tbody>\n'; \
7782
for s in $(dirs); do \
78-
printf ' <h2><a href="%s">%s &mdash; %s</a></h2>\n' \
79-
"$$s" "$$s" "$$(desc "$$s")"; \
83+
printf ' <tr><td><a href="%s">%s</a></td><td><a href="%s">%s</a></td><tr>\n' \
84+
"$$s" "$$s" "$$s" "$$(desc "$$s")"; \
8085
done; \
86+
printf ' </tbody>\n </table>\n' \
8187
)" > "$@"
8288

8389
sitemap.xml:
@@ -96,9 +102,10 @@ sitemap.xml:
96102
%/index.html: whatis
97103
$(desc) \
98104
sect=$$(dirname "$@"); \
99-
printf '$(template)' "man$$sect &mdash; POSIX Manpages" "../style.css" \
100-
"<a href=\"../\">POSIX</a> &mdash; $$(desc "$$sect")" "$$(\
101-
printf ' <ul class="whatis">\n'; \
105+
printf '$(template)' "man$$sect &middot; POSIX" "../style.css" \
106+
"$$(printf '<nav><a href="../" class="os">POSIX</a><span class="section">man%s</span></nav>' "$$sect")" \
107+
"$$(desc "$$sect")" "$$(\
108+
printf ' <table class="whatis">\n <thead><tr><th>Name</th><th>Summary</th></tr></thead>\n <tbody>\n'; \
102109
$(SED) -n -e ' \
103110
h; \
104111
s/ - /\n/; \
@@ -108,12 +115,12 @@ sitemap.xml:
108115
' -e "/($$sect)/!b" -e ' \
109116
s|\([^, ][^(]*\)([0-9n][^)]*)|<a href="./\1">&</a>|g; \
110117
s|\(<a href="\./[^"]*\)/|\1_|g; \
111-
s/^/ <li>/; \
118+
s|^| <tr><td class="names">|; \
112119
G; \
113-
s/\n/ \&mdash; /; \
114-
s|$$|</li>|p; \
120+
s|\n|</td><td class="summary">|; \
121+
s|$$|</td></tr>|p; \
115122
' whatis; \
116-
printf ' </ul>\n' \
123+
printf ' </tbody>\n </table>\n' \
117124
)" > "$@"
118125

119126
1/%.html: man-posix/man1p/%.1p

index.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,23 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>POSIX Manpages</title>
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>POSIX man pages</title>
67
<link rel="stylesheet" href="style.css">
78
</head>
89
<body>
10+
<header>
11+
POSIX
12+
<h1>Manual Pages</h1>
13+
</header>
914
<main>
10-
<h1>POSIX Manpages</h1>
11-
<h2><a href="1">1 &mdash; Utilities</a></h2>
12-
<h2><a href="3">3 &mdash; Headers & Functions</a></h2>
15+
<table class="sections">
16+
<thead><tr><th>Section</th><th>Title</th></tr></thead>
17+
<tbody>
18+
<tr><td><a href="1">1</a></td><td><a href="1">Utilities</a></td><tr>
19+
<tr><td><a href="3">3</a></td><td><a href="3">Headers & Functions</a></td><tr>
20+
</tbody>
21+
</table>
1322
</main>
1423
</body>
1524
</html>

0 commit comments

Comments
 (0)