Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Not sure if built-in attributes and intrinsic attributes are the same thing and you can override one but not the other.
I wish to override docdate and doctime (or docdatetime) and I have tried as an experiment using: :docdate: my date in the document and also via the API, but I am not able to get it to change. The reason why I want to do this is because the final document is composed of several adoc files (some auto generated) and I would like the last updated message in the footer to reflect the newest of all the adoc files making up the document and not just the 'master' document. My build system will find the latest date and pass it in through the API so I am not expecting asciidoctor determine this for me. The user manual says you can override the intrinsic attributes but it doesn't seem to be working for me. I am using version 1.5.2 Thanks, Dave. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Have you tried using the command line -a to override?
On Thursday, October 1, 2015, daveb [via Asciidoctor :: Discussion] <[hidden email]> wrote: Not sure if built-in attributes and intrinsic attributes are the same thing and you can override one but not the other. ... [show rest of quote] -- Sent from Gmail Mobile |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Just tried
asciidoctor -a docdatetime=XXX test.adoc and the footer didn't change. I need to do this via the API in any event. Dave. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
|
The docdate, doctime and docdatetime attributes were not meant to be overridden. What you probably want to do is disable the automatic footer text. You can do that by undefining the last-update-label attribute: :last-update-label!: That just drops the date part. Another solution is to disable the footer altogether: :nofooter: You can then add your own footer in using a footer docinfo file. There is an open issue to set the doc date/time attributes to the timestamp of the most recent include. Cheers, -Dan On Thu, Oct 1, 2015 at 9:25 AM, daveb [via Asciidoctor :: Discussion] <[hidden email]> wrote: Just tried Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Hi Dan,
I realise I could 'roll my own' but using docdate and doctime would be very convenient. This would be a welcome addition, however it doesn't cope with the case when content is injected using an extension and the source of this contented is dated, as in my case. Allowing docdate and doctime to be user mutable would seem to give the best of all worlds. Dave. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
|
On Fri, Oct 2, 2015 at 1:03 AM, daveb [via Asciidoctor :: Discussion] <[hidden email]> wrote: Allowing docdate and doctime to be user mutable would seem to give the best of all worlds. Could you file an issue? I hadn't considered the case before, but it's pretty clear that there are cases when only the API will know the right doc date/time (usually when it is sourced from another location such as a database or web service). |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Issue raised together with the fix I have applied to my local version of asciidoctor.
Dave. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
|
Thanks Dave! -Dan On Fri, Oct 2, 2015 at 4:50 AM, daveb [via Asciidoctor :: Discussion] <[hidden email]> wrote: Issue raised together with the fix I have applied to my local version of asciidoctor. Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen |
Free forum by Nabble | Edit this page |