3 cc9bf8f2 2021-11-05 op # usage: mdoc2html.sh src out
5 cc9bf8f2 2021-11-05 op # converts the manpage `src' to the HTML file `out', tweaking the
10 cc9bf8f2 2021-11-05 op : ${1:?missing input file}
11 cc9bf8f2 2021-11-05 op : ${2:?missing output file}
13 cc9bf8f2 2021-11-05 op man -Thtml -l "$1" > "$2"
15 cc9bf8f2 2021-11-05 op exec ed "$2" <<EOF
19 cc9bf8f2 2021-11-05 op max-width: 960px;
20 cc9bf8f2 2021-11-05 op margin: 0 auto;
21 cc9bf8f2 2021-11-05 op padding: 0 10px;
22 cc9bf8f2 2021-11-05 op font-size: 1rem;
26 cc9bf8f2 2021-11-05 op overflow: auto;