-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docinfo.html is not inserted #198
Comments
Please see https://github.com/asciidoctor/asciidoctor-bespoke/blob/master/templates/slim/document.html.slim for the correct way to support docinfo in the reveal.js converter. Specifically:
I believe we should look for the |
According to https://asciidoctor.org/docs/user-manual/#naming-docinfo-files conflicts can be avoided by using the Right now I am using I am new to asciidoctor and .slim so my apologies if I am misunderstanding. I'm very grateful that it is capable of so many things. Just raising the issue to improve the ability of new users to make use of it :) |
That's still not sufficient to support the goal of a single source document. Some users want to be able to generate an article and slides from the same document. But the docinfo file wouldn't be able to tell the difference. What we could do is introduce the idea of a docinfo qualifier. The reveal.js and bespoke converters would set this by default, but it would still be possible to nullify it using at attribute assignment. That would give us the best of both worlds. |
To clarify, you are absolutely right to raise this issue. I'm simply suggesting that we bring the behavior into alignment with the bespoke converter. |
I see. Yes, that sounds perfect! :) |
resolves #198 resolves docinfo head, header and footer
Expected:
Including a docinfo.html file and a :docinfo: shared attribute should cause it to appear in the html output.
Actual:
HTML is not inserted.
Workaround:
I am able to
ln -s docinfo.html docinfo-header.html
Then the html is inserted into head.
i.e.: file must be called docinfo-header.html to be inserted, which contradicts the documentation in asciidoctor user manual.
I discovered this workaround on observing that the code is looking for header here:
asciidoctor-reveal.js/templates/document.html.slim
Line 72 in 6d700b9
There is related and conflicting information here:
asciidoctor/asciidoctor#1510
My repo demonstrating the problem:
https://github.com/timothypratley/enterprise-clojure-training
The text was updated successfully, but these errors were encountered: