aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-10-02 14:56:47 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-10-02 14:56:47 +0000
commitcc61d00ed522f99c9f1a34fcc6add2d202942885 (patch)
treebd523708468309e4a2f716485ca75294c2822d66 /mandoc.1
parentdfc72caad2158b1226363fe39e7bfa995ef68f78 (diff)
downloadmandoc-cc61d00ed522f99c9f1a34fcc6add2d202942885.tar.gz
mandoc-cc61d00ed522f99c9f1a34fcc6add2d202942885.tar.zst
mandoc-cc61d00ed522f99c9f1a34fcc6add2d202942885.zip
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 'mandoc.1')
-rw-r--r--mandoc.15
1 files changed, 4 insertions, 1 deletions
diff --git a/mandoc.1 b/mandoc.1
index c35ef73a..cd84be76 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,4 +1,4 @@
-.\" $Id: mandoc.1,v 1.229 2018/10/02 12:33:37 schwarze Exp $
+.\" $Id: mandoc.1,v 1.230 2018/10/02 14:56:47 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2012, 2014-2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -371,6 +371,9 @@ The file
is used for an external style-sheet.
This must be a valid absolute or
relative URI.
+.It Cm toc
+If an input file contains at least two non-standard sections,
+print a table of contents near the beginning of the output.
.El
.Ss Locale Output
By default,