diff --git a/asciidoc-change-Last-Updated-field.patch b/asciidoc-change-Last-Updated-field.patch new file mode 100644 index 0000000..71d334a --- /dev/null +++ b/asciidoc-change-Last-Updated-field.patch @@ -0,0 +1,260 @@ +From 9a2f59e74dde8b0df1acdfc2dde40a0a868a16a8 Mon Sep 17 00:00:00 2001 +From: Joseph HERLANT +Date: Fri, 14 Feb 2014 15:56:45 +0100 +Subject: Adding the ability to change "Last Updated" field + +This commit adds the ability to change the behavior of the "Last Updated" +field at the bottom of the html documents generated by asciidoc. +This will be done by using the "footer-style" new attribute. +This commit adds the ability to change it to the revision date or to skip it. + +This commit also adds the documentation of this new feature to the user guide. + + +--- + doc/asciidoc.txt | 16 ++++++++++++++++ + html4.conf | 13 +++++++++++++ + html5.conf | 13 +++++++++++++ + lang-cs.conf | 3 ++- + lang-de.conf | 3 ++- + lang-el.conf | 3 ++- + lang-en.conf | 3 ++- + lang-es.conf | 3 ++- + lang-fr.conf | 3 ++- + lang-hu.conf | 3 ++- + lang-nl.conf | 3 ++- + lang-uk.conf | 3 ++- + xhtml11.conf | 13 +++++++++++++ + 13 files changed, 73 insertions(+), 9 deletions(-) + +--- a/doc/asciidoc.txt ++++ b/doc/asciidoc.txt +@@ -5948,6 +5948,22 @@ A short summary of changes in this docum + prior to the first document section. The document also needs to be + dated to output this attribute. + ++|footer-style |html4, html5, xhtml11 | ++Changes the "Last updated" field in the footer of the document or removes this ++field and the revision number (in the footer only). + ++Can take 3 values: ++ ++- none : Don't display the "Last updated" and "Revision number" fields in the ++ footer of the document ++- revdate : The "Last updated" field's date in the footer will be the revision ++ date specified in the document (`revdate` attribute) ++- default (or any other value) : The "Last updated" field's date in the footer ++ will be the date of the input file modification ++ ++This attribute can be set, for example, using `:footer-style: revdate` in the ++header of the file or using the `--attribute footer-style=revdate` command-line ++option. ++ + |scriptsdir |html5, xhtml11 | + The name of the directory containing linked JavaScripts. + See <>. +--- a/html4.conf ++++ b/html4.conf +@@ -444,11 +444,14 @@ cellspacing="0" cellpadding="4"> + | + + [footer] ++# Removing footer date and version if footer-style set to none ++ifeval::["{footer-style=default}"!="none"] +

+

+

+ template::[footer-text] +

++endif::[] + + + +@@ -467,6 +470,16 @@ template::[footer-text] + template::[docinfo] + + ++[footer-date] ++# Default footer date is document modification time ++ifeval::["{footer-style=default}"!="revdate"] ++ {docdate} {doctime} ++endif::[] ++# If set to "revdate", it'll be set to the revision date ++ifeval::["{footer-style=default}"=="revdate"] ++ {revdate} ++endif::[] ++ + #-------------------------------- + # article and book document types + #-------------------------------- +--- a/html5.conf ++++ b/html5.conf +@@ -662,9 +662,12 @@ endif::doctype-manpage[] + + {disable-javascript%

} +