Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/notes/common Remove TOC entry for Sh; there are only...
details: https://anonhg.NetBSD.org/src/rev/e1b997967b89
branches: trunk
changeset: 518190:e1b997967b89
user: jhawk <jhawk%NetBSD.org@localhost>
date: Mon Nov 26 01:16:22 2001 +0000
description:
Remove TOC entry for Sh; there are only 3 of them and they're
all on page one and they add needless clutter. Additionally
doc2html doesn't output a tag for them, so we cannot link to them.
Lower indent level for Ss and Ss2
Add special HTML support: emit an HREF on each TOC line. There's some
nasty kludging with extending the dot-leader tab stop by the width
of the href, but that's life in mdoc2html.
TOCs need to be regenerated, but I'm not going to bother for a while.
diffstat:
distrib/notes/common/macros | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diffs (40 lines):
diff -r 5b399e1f457b -r e1b997967b89 distrib/notes/common/macros
--- a/distrib/notes/common/macros Mon Nov 26 01:03:58 2001 +0000
+++ b/distrib/notes/common/macros Mon Nov 26 01:16:22 2001 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: macros,v 1.12 2001/11/26 00:19:57 jhawk Exp $
+.\" $NetBSD: macros,v 1.13 2001/11/26 01:16:22 jhawk Exp $
.\"
.\" Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -315,24 +315,22 @@
.\" .Tc import the TOC
.\" .Ti depth page "item" (internal) output an entry
.if dTOC \{
-.rn Sh Sh-toc
-.de Sh
-.Sh-toc \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
-\.tm .Ti 0 \\n% \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
-..
.rn Ss Ss-toc
.de Ss
.Ss-toc \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
-\.tm .Ti 1 \\n% \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
+\.tm .Ti 0 \\n% \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
..
.rn Ss2 Ss2-toc
.de Ss2
.Ss2-toc \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
-\.tm .Ti 2 \\n% \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
+\.tm .Ti 1 \\n% \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
..
.\}
.de Ti
-\h'3n*\\$1u' \\$3\a\\$2
+.ie rHTML \{.ta (\n(.lu+\w'<a href="#\\$3"></a>'u)R
+\h'3n*\\$1u' <a href="#\\$3">\\$3</a>\a\\$2
+.\}
+.el \h'3n*\\$1u' \\$3\a\\$2
..
.de Tc
.Bd -literal
Home |
Main Index |
Thread Index |
Old Index