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