-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Hierarchy of sections not clear in generated HTML. Is there an unnecessary wrapping section? #174
Comments
This is for "Vertical Slides" feature of revealjs. |
Please paste or share your reproduction code. v3.0.x provides directives to inject attributes into per I need to see your code issued for this to judge where are there problems. |
I realized now that I wrongly placed the directive "revealjs-section". I corrected it and it works. The related fragment of conf.py, the rst file and a screenshot are attached. |
Here are the files which combine the directives "revealjs-section" and "revealjs-vertical". |
Good! You can embed any revealjs plugins when using
I cloesed discussion pages once because questions are not much, but I missed to remove link for it. |
What happened?
Why are the main sections wrapped in another section? Revealjs doesn't do this.
This can cause issues for revealjs plugins.
The generated HTML of the sphinx-revealjs demo has following structure:
It is not clear why each main section (like h1 and h2) are in a section which is in a section. One level of section seems to be enough.
(Furthermore there is an unnecessary closing "" after "<script async". This might be caused by some issue in the Python code.)
The reveal.js demo barebones at https://github.com/hakimel/reveal.js/blob/master/examples/barebones.html
has following structure:
This is a simpler structure which can be used successfully with the revealjs plugin simplemenu. An attribute "data-name" is specified to each main section. A menu of main sections can then automatically be generated.
This is not possible with an additional outer section (which is currently generated by sphinx-revealjs). The data-name would show up only in the inner section which is then ignored by the plugin.
For the demo of simplemenu see: https://github.com/Martinomagnifico/reveal.js-simplemenu/blob/master/demo.html
in action: https://martinomagnifico.github.io/reveal.js-simplemenu/demo.html#/whatitdoes
Operating system
Windows 10
Python runtime and version
Python 3.12.4
Sphinx version
7.2.6
Library version
3.0.2
Extra context
Thank you for the version 3.
The text was updated successfully, but these errors were encountered: