ctargett / refguide-asciidoc-poc

Proof of concept of Solr Ref Guide converted to asciidoc format & using Asciidoctor for publishing
2 stars 4 forks source link

Add create date to the PDF #29

Closed ctargett closed 7 years ago

ctargett commented 7 years ago

I think it would be helpful for the PDF to include the date it was created, either named a "publication date" or a "created date".

Ideally this would be in the footer, depending on how it works with page numbers and the copyright statement.

hossman commented 7 years ago

If we figure out a way to solve issue #25 and issue #26 via variables passed to jekyll/asciidoctor at runtime (presumably from ant), we should be able to do the same thing with the current date as a string.

ctargett commented 7 years ago

I was thinking we could just add it to the theme, but it looks like there are only these options for a header or footer:

Actually...since the tree for the PDF is constructed at the time the PDF is generated, we could just add something to that process that adds an asciidoctor attribute to the top of the document (like :publication-date: 5 Nov 2016), then in the theme say we want that attribute printed in the footer, or wherever it works (header, title page, wherever.).