From 892fe105075787bbfaad4b7b8edad9f9444dd441 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sun, 22 Jul 2007 12:19:19 +0000 Subject: [PATCH] Added the man.authors.section.enabled and man.copyright.section.enabled parameters. Set those to zero when you want to suppress display of the auto-generated AUTHORS and COPYRIGHT sections. Closes request #1467806. Thanks to Daniel Leidert. --- xsl/manpages/docbook.xsl | 16 ++-- xsl/manpages/param.ent | 86 ++++++++++---------- xsl/manpages/param.xweb | 81 +++++++++--------- xsl/params/man.authors.section.enabled.xml | 46 +++++++++++ xsl/params/man.copyright.section.enabled.xml | 46 +++++++++++ 5 files changed, 190 insertions(+), 85 deletions(-) create mode 100644 xsl/params/man.authors.section.enabled.xml create mode 100644 xsl/params/man.copyright.section.enabled.xml diff --git a/xsl/manpages/docbook.xsl b/xsl/manpages/docbook.xsl index 2e8292ab5..b43e9b119 100644 --- a/xsl/manpages/docbook.xsl +++ b/xsl/manpages/docbook.xsl @@ -233,15 +233,19 @@ - - - + + + + + - - - + + + + + diff --git a/xsl/manpages/param.ent b/xsl/manpages/param.ent index 2e4c45e08..7441d53ed 100644 --- a/xsl/manpages/param.ent +++ b/xsl/manpages/param.ent @@ -1,57 +1,59 @@ + + + + + + + + + + + + + + + + - - - - - - + - - - + + + + + + + + + + + + - - - - - - + + + + + + + + + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - + diff --git a/xsl/manpages/param.xweb b/xsl/manpages/param.xweb index 4612874ff..46b683ff7 100644 --- a/xsl/manpages/param.xweb +++ b/xsl/manpages/param.xweb @@ -53,6 +53,11 @@ &man.font.funcsynopsisinfo; &man.font.table.headings; &man.font.table.title; + + + AUTHORS and COPYRIGHT sections + &man.authors.section.enabled; + &man.copyright.section.enabled; Endnotes and link handling @@ -140,63 +145,65 @@ ******************************************************************** --> + + + + + + + + + + + + + + + - - - - - + - - - - - - - + + + + - + + + - + - - - - - - - - - - - + + + + + + + + + - - - - - - + + + + + - - - - - - + diff --git a/xsl/params/man.authors.section.enabled.xml b/xsl/params/man.authors.section.enabled.xml new file mode 100644 index 000000000..73cb63782 --- /dev/null +++ b/xsl/params/man.authors.section.enabled.xml @@ -0,0 +1,46 @@ + + +man.authors.section.enabled +boolean + + +man.authors.section.enabled +Display auto-generated AUTHORS section? + + + +1 + + +Description + +If the value of +man.authors.section.enabled is non-zero +(the default), then an AUTHORS section is +generated near the end of each man page. The output of the +AUTHORS section is assembled from any +author, editor, and othercredit +metadata found in the contents of the child info or +refentryinfo (if any) of the refentry +itself, or from any author, editor, and +othercredit metadata that may appear in info +contents of any ancestors of the refentry. + +If the value of +man.authors.section.enabled is zero, the +the auto-generated AUTHORS section is +suppressed. + +Set the value of + man.authors.section.enabled to zero if + you want to have a manually created AUTHORS + section in your source, and you want it to appear in output + instead of the auto-generated AUTHORS + section. + + diff --git a/xsl/params/man.copyright.section.enabled.xml b/xsl/params/man.copyright.section.enabled.xml new file mode 100644 index 000000000..9e8358761 --- /dev/null +++ b/xsl/params/man.copyright.section.enabled.xml @@ -0,0 +1,46 @@ + + +man.copyright.section.enabled +boolean + + +man.copyright.section.enabled +Display auto-generated COPYRIGHT section? + + + +1 + + +Description + +If the value of +man.copyright.section.enabled is non-zero +(the default), then a COPYRIGHT section is +generated near the end of each man page. The output of the +COPYRIGHT section is assembled from any +copyright and legalnotice metadata found in +the contents of the child info or +refentryinfo (if any) of the refentry +itself, or from any copyright and +legalnotice metadata that may appear in info +contents of any ancestors of the refentry. + +If the value of +man.copyright.section.enabled is zero, the +the auto-generated COPYRIGHT section is +suppressed. + +Set the value of + man.copyright.section.enabled to zero if + you want to have a manually created COPYRIGHT + section in your source, and you want it to appear in output + instead of the auto-generated COPYRIGHT + section. + + -- 2.40.0