summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoseph HERLANT <herlantj@gmail.com>2014-02-14 15:56:45 +0100
committerJoseph Herlant <herlantj@gmail.com>2016-03-08 10:31:40 -0800
commit9a2f59e74dde8b0df1acdfc2dde40a0a868a16a8 (patch)
treea429b9405f05750029ec00a2fccf078406da4c1a /doc
parentbf0cae635a1bbb8ee602669150c2091c7b98b507 (diff)
downloadasciidoc-git-9a2f59e74dde8b0df1acdfc2dde40a0a868a16a8.tar.gz
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. Testasciidoc tests are also provided in this commit.
Diffstat (limited to 'doc')
-rw-r--r--doc/asciidoc.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/asciidoc.txt b/doc/asciidoc.txt
index fd33c61..e75ef2c 100644
--- a/doc/asciidoc.txt
+++ b/doc/asciidoc.txt
@@ -5965,6 +5965,22 @@ A short summary of changes in this document revision. Must be defined
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 <<X35,HTML stylesheets and JavaScript locations>>.