summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorbmah <bmah@FreeBSD.org>2001-10-26 20:26:59 +0000
committerbmah <bmah@FreeBSD.org>2001-10-26 20:26:59 +0000
commitd4385b344bf27da1a298666eac630417d9538392 (patch)
tree2e57a6f8228905bd691f05464531fc3f27e77c54 /release
parentdfb5c0da6e4852123fb12d6f6d2ba300c8c833f6 (diff)
downloadFreeBSD-src-d4385b344bf27da1a298666eac630417d9538392.zip
FreeBSD-src-d4385b344bf27da1a298666eac630417d9538392.tar.gz
If an article in the release documentation has a table of contents,
make it go down to 3 section levels (the default depth for FreeBSD articles is 1 level, but few articles have tables-of-contents enabled).
Diffstat (limited to 'release')
-rw-r--r--release/doc/en_US.ISO8859-1/share/sgml/release.dsl6
1 files changed, 6 insertions, 0 deletions
diff --git a/release/doc/en_US.ISO8859-1/share/sgml/release.dsl b/release/doc/en_US.ISO8859-1/share/sgml/release.dsl
index 2838743..032d512 100644
--- a/release/doc/en_US.ISO8859-1/share/sgml/release.dsl
+++ b/release/doc/en_US.ISO8859-1/share/sgml/release.dsl
@@ -65,6 +65,12 @@
(string-append "http://www.FreeBSD.org/cgi/man.cgi?query="
refentrytitle "&" "sektion=" manvolnum))
]]>
+
+ (define (toc-depth nd)
+ (if (string=? (gi nd) (normalize "book"))
+ 3
+ 3))
+
</style-specification-body>
</style-specification>
OpenPOWER on IntegriCloud