A mirror/fork of mdocml from <http://mdocml.bsd.lv/>. I'm adding an "html5" output mode.
C Objective-C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Makefile
README.md
TODO
apropos.1
apropos.c
apropos_db.c
apropos_db.h
arch.c
arch.in
att.c
att.in
catman.8
catman.c
cgi.c
chars.c
chars.in
compat_fgetln.c
compat_getsubopt.c
compat_strlcat.c
compat_strlcpy.c
config.h.post
config.h.pre
demandoc.1
demandoc.c
eqn.7
eqn.c
eqn_html.c
eqn_term.c
example.style.css
external.png
html.c
html.h
index.css
index.sgml
lib.c
lib.in
libman.h
libmandoc.h
libmdoc.h
libroff.h
main.c
main.h
man-cgi.css
man.7
man.c
man.cgi.7
man.h
man_hash.c
man_html.c
man_macro.c
man_term.c
man_validate.c
mandoc.1
mandoc.3
mandoc.c
mandoc.h
mandoc_char.7
mandocdb.8
mandocdb.c
mandocdb.h
manpath.c
manpath.h
mdoc.7
mdoc.c
mdoc.h
mdoc_argv.c
mdoc_hash.c
mdoc_html.c
mdoc_macro.c
mdoc_man.c
mdoc_term.c
mdoc_validate.c
msec.c
msec.in
out.c
out.h
preconv.1
preconv.c
predefs.in
read.c
roff.7
roff.c
st.c
st.in
style.css
tbl.7
tbl.c
tbl_data.c
tbl_html.c
tbl_layout.c
tbl_opts.c
tbl_term.c
term.c
term.h
term_ascii.c
term_ps.c
test-fgetln.c
test-getsubopt.c
test-mmap.c
test-strlcat.c
test-strlcpy.c
test-strptime.c
tree.c
vol.c
vol.in
whatis.1

README.md

A mirror/fork of mdocml from http://mdocml.bsd.lv/. Is there another GH repo for this?

My immediate goal is to get nicer/cleaner HTML output for man pages. The current HTML output via:

$ mandoc -Thtml -Ostyle=style.css foo.1 >foo.1.html

inlines a lot more styles than I think necessary and other things

I'll call my output mode "html5". All work is in the html5 branch.

html5 things to improve

  • html5 doctype
  • no inline styles
  • drop hardcoded col widths
  • markdown2-style header ids
  • revisit CSS classes assigned
  • nicer stock CSS

Dev Notes

make mandoc
./mandoc -Thtml -Ostyle=style.css preconv.1 > preconv.1.html