Closed
Description
I want to use Reveal JS autoslide for a presentation, and would overwrite this function with :data-autoslide:
integer like it is descript in this document but it won't change his first value.
asciidoctor-revealjs -v
Asciidoctor reveal.js 4.0.1 using Asciidoctor 2.0.10 [https://asciidoctor.org]
Runtime Environment (ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)
Activity
ggrossetie commentedon May 24, 2020
For reference: asciidoctor/asciidoctor#3673 (comment)
I was only suggesting what the syntax should be but since it's not implemented it won't work.
Are you familiar with Ruby? I think it would be relatively simple to implement if you want to give it a try.
Basically, what we need to do is add the following line:
in here:
asciidoctor-reveal.js/templates/section.html.slim
Lines 56 to 57 in 2eb03a5
Then test add an example in the
examples
directory to make sure it's actually working.lucki1000 commentedon May 25, 2020
I'm not familiar with Ruby,
I have added this
data-autoslide=(attr "autoslide")
in /var/lib/gems/2.5.0/gems/asciidoctor-revealjs-4.0.1/templates/section.html.slim and tried againasciidoctor-revealjs ./document.adoc -o index.html
but still no changes.ggrossetie commentedon May 25, 2020
The templates are "compiled" so it won't work if you update locally the template file
section.html.slim
. You will need to clone this project and build it: https://github.com/asciidoctor/asciidoctor-reveal.js/blob/master/HACKING.adoclucki1000 commentedon May 26, 2020
I've cloned this repo and added
data-autoslide=(attr "autoslide")
to the template section.html.slim then i executed:after this i run again
asciidoctor-revealjs ./document.adoc -o index.html
but nothing changed.ggrossetie commentedon May 26, 2020
can you run
bundle exec asciidoctor-revealjs ./document.adoc -o index.html
from the repository?lucki1000 commentedon May 26, 2020
Changed sadly nothing.
ggrossetie commentedon May 26, 2020
Damn! I will give it a try 😉
ggrossetie commentedon May 26, 2020
I just did and it's working:
Edit the file:
Create a presentation:
Build and run:
resolves asciidoctor#367 allow to configure autoslide timer per slide
Merge pull request #368 from Mogztter/issue-367-configure-autoslide
lucki1000 commentedon May 27, 2020
I'm Sorry by me it worked too :), had a typo in the -o argument.
Thanks
ggrossetie commentedon May 27, 2020
No worries 😉