diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-10-02 14:56:47 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-10-02 14:56:47 +0000 |
commit | 1a292c4956427312d2ebea2becc01a2861e089fc (patch) | |
tree | d767b2200fd77455d1c7f9c1ef1ec6648d1750b0 /html.c | |
parent | 9e238facdedce54e6eeccb030929d4b3893df873 (diff) | |
download | mandoc-1a292c4956427312d2ebea2becc01a2861e089fc.tar.gz |
Add an option -T html -O toc to add a brief table of contents near
the top of HTML pages containing at least two non-standard sections.
Suggested by Adam Kalisz and discussed with kristaps@ during EuroBSDCon 2018.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -136,6 +136,8 @@ html_alloc(const struct manoutput *outopts) h->base_includes = outopts->includes; if (outopts->fragment) h->oflags |= HTML_FRAGMENT; + if (outopts->toc) + h->oflags |= HTML_TOC; mandoc_ohash_init(&id_unique, 4, 0); |