-
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
Use a consistent naming convention for Docinfo locations #466
Comments
@mojavelinux I would greatly appreciate your input on this proposal since this is the last standing issue before the 5.0.0 release and I'm a bit unsure about the terminology... I'm also questioning if we should have Docinfo with and without suffix? For instance, |
I would prefer "front" and "back" instead of "first" and "last". That's consistent with terminology used elsewhere in the Asciidoctor ecosystem (such as front cover and back cover for a PDF or EPUB 3). I'm totally find with requiring the location in the filename. The only reason it's optional in the core converters (HTML and DocBook) is for backwards compatibility when there was only a single insertion slot. Now that we have specific insertion slots, it's more intelligible to have the location in the filename. Beyond that, go for it! |
Hello, I’m not an expert of docinfo, but I was surprised that, what seemed to be standard docinfo to me ( I also like the idea of having something like a If the “slides” docinfo are added, may I suggest to rename |
Thanks for your input!
It does work but the suffix is It could mean:
For reference, here's the markup of a reveal.js presentation: <html>
<head>
<link rel="stylesheet" href="dist/reveal.css">
<link rel="stylesheet" href="dist/theme/white.css">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>Slide 1</section>
<section>Slide 2</section>
<section>
<section>Slide 2.1 (vertical)</section>
<section>Slide 2.2 (vertical)</section>
</section>
</div>
</div>
<script src="dist/reveal.js"></script>
<script>
Reveal.initialize();
</script>
</body>
</html> Here's a revised proposal where all possible "header locations" are named: <html>
<head>
<link rel="stylesheet" href="dist/reveal.css">
<link rel="stylesheet" href="dist/theme/white.css">
</head>
<body>
<!-- header (most likely used to configure plugins since the content won't be visible here) -->
<div class="reveal">
<!-- before (most likely used to configure plugins since the content won't be visible here) -->
<div class="slides">
<!-- front (first slide) -->
<section>
<!-- heading / top? (slide header) -->
Slide 1
</section>
<!-- ... -> I'm trying to stick to a single word but it might be better to use
You are correct, I will fix it.
The suffix "revealjs" was added to disambiguate a docinfo used by the built-in HTML5 converter from a docinfo used by the reveal.js converter (HTML5 presentation).
I would prefer to defer until someone makes a strong case for it. |
Hello,
I think I’ve a use case for it (unless it’s already possible another way?): I’d like to put an URL and license information in a footer on every slides. |
Currently, we support 4 locations:
header
header-revealjs.html
footer
footer-revealjs.html
head
</head>
head-revealjs.html
footer
</html>
(afterreveal.js
script)footer.html
In the future, we might want to inject Docinfo files at the beginning of every slide (i.e., slide header) and at the end of every slide (i.e., slide footer). Though, we might want to inject Docinfo files at the beginning of every top-level slide rather than on every slide... or maybe only on vertical (i.e. secondary/vertical navigation) slides.
Proposal
header
: Just before and outside of<div class="slides">
(to accomodate New docinfo before slides #376)first
: At the beginning of the presentation (i.e. before all slides)last
: At the end of the presentation (i.e. after all the slides)head
: Just before</head>
footer
: Just before</html>
//cc @mojavelinux
The text was updated successfully, but these errors were encountered: