were there changes to the stylesheet specification?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

were there changes to the stylesheet specification?

jlo2k
Hi, on the docToolChain github repository a user stated the following:

Unfortunately, asciidoctor changed some class names.
The following lines in the default yaml theme don't work any more:

footer:
   height: 0.75in
   line_height: 1
   recto_content:
     right: '{chapter-title} | *{page-number}*'
   verso_content:
     left: '*{page-number}* | {chapter-title}'
This is how it should look like:

footer:
   height: 0.75in
   line_height: 1
   recto:
     right:
       content: '{chapter-title} | *{page-number}*'
   verso:
     left:
      content: '*{page-number}* | {chapter-title}'
Just in case anyone else is having trouble.
Update: Same applies to the header.


Is he right, was there a change and are those changes documented and the documentation updated? I had some trouble with the stylesheets too in the past, but was not aware of a change, thought i simply did not specify them right... forgive me to be too lazy to check all this by myself instead just asking, drowning in work at the moment...
Reply | Threaded
Open this post in threaded view
|

Re: were there changes to the stylesheet specification?

Alexander Schwartz
Hi, yes there were changes.

Assuming that you're using asciidoctor-pdf 1.5.x, here is a link to that version's theming guide and default theme:

https://github.com/asciidoctor/asciidoctor-pdf/blob/v1.5.x/docs/theming-guide.adoc

https://github.com/asciidoctor/asciidoctor-pdf/blob/v1.5.x/data/themes/default-theme.yml

The changes were made as part of https://github.com/asciidoctor/asciidoctor-pdf/issues/449.

It was included in version 1.5.0 Alpha 13 released on 19 Sep 2016.

It would have been helpful to add the link to the doctoolchain issue. Here it is: https://github.com/docToolchain/docToolchain/issues/568

There was a mapping of old content that was removed in version v1.5.0.beta.1
Alexander Schwartz (alexander.schwartz@gmx.net)
https://www.ahus1.de
Reply | Threaded
Open this post in threaded view
|

Re: were there changes to the stylesheet specification?

jlo2k
Hello,
thank for your quick and thorough answer.
Will also try better to adhere to remember to include the github link in the future.

Thanks again.