From dec7f3cd8e58547f8446b38080b35de04450fedb Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Sun, 16 Feb 2003 14:59:30 +0000 Subject: [PATCH] Add the following knobs for the DocBook DSSSL stylesheets: - WITH_INLINE_LEGALNOTICE (for HTML only): do not render as a separate file if defined. - WITH_ARTICLE_TOC: generate TOC for documents whose root element is
if defined. - WITH_BIBLIOXREF_TITLE: for cross references to bibliography entries, use the title of the entry as the cross reference text, if defined. --- share/mk/doc.docbook.mk | 12 ++++++++++++ share/sgml/freebsd.dsl | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/share/mk/doc.docbook.mk b/share/mk/doc.docbook.mk index 0dd44be9b6..da339d0a02 100644 --- a/share/mk/doc.docbook.mk +++ b/share/mk/doc.docbook.mk @@ -192,6 +192,18 @@ TEXCMDS+= \tracingstats=${TRACE} PNMTOPSFLAGS+= -rle .endif +.if !defined(WITH_INLINE_LEGALNOTICE) || empty(WITH_INLINE_LEGALNOTICE) +HTMLFLAGS+= -V %generate-legalnotice-link% +.endif +.if defined(WITH_ARTICLE_TOC) && !empty(WITH_ARTICLE_TOC) +HTMLFLAGS+= -V %generate-article-toc% +PRINTFLAGS+= -V %generate-article-toc% +.endif +.if defined(WITH_BIBLIOXREF_TITLE) && !empty(WITH_BIBLIOXREF_TITLE) +HTMLFLAGS+= -V biblio-xref-title +PRINTFLAGS+= -V biblio-xref-title +.endif + PERL?= /usr/bin/perl PKG_CREATE?= /usr/sbin/pkg_create SORT?= /usr/bin/sort diff --git a/share/sgml/freebsd.dsl b/share/sgml/freebsd.dsl index 8e16134e3b..3f561bfcb7 100644 --- a/share/sgml/freebsd.dsl +++ b/share/sgml/freebsd.dsl @@ -60,7 +60,7 @@ ;; ;; Naturally, this has no effect if you're building one big ;; HTML file. - #t) + #f) (define (book-titlepage-recto-elements) (list (normalize "title")