Releases: apiad/auditorium
Appending shows
Now you can show.append
one show after another and compose larger slideshows from short parts. This works also with direct paths like show.append("/path/to/show.md")
.
Fixes
New version
Merge pull request #29 from apiad/develop Update travis
New version
Merge pull request #28 from apiad/develop Update deploy
Switched to Poetry
Merge pull request #27 from apiad/develop v0.6.1
Show is stateless now
With this update, we add a parameter to all slide functions named ctx
, of type Context
. This object now contains all the layout logic of the slideshow, so instead of calling show.markdown
you will now call ctx.markdown
. This allows us to completely detach the show
object from the state of each slide. So now every slide is stateless, animation status and text input state is maintained in JavaScript, and it becomes safe to run a slideshow on different browsers.
Add pygments
This release replaces the dynamic highlighter.js
by the static syntax highlighter pygments
. Static in this context means that syntax highlight is performed in Python rather than in Javascript. This solves issue #20 regarding the incorrect highlight of statically rendered slideshows, since highlight.js
could not be embedded and made to work with reveal-js
.
Static rendering
Now you can use auditorium render [file.py] > [output.html]
to obtain a static HTML with embedded CSS and JavaScript.
Fix wrong order in vertical slides
Merge pull request #18 from apiad/develop Bump version
New syntax for vertical slides
This release completely changes the syntax for vertical slides in favour of a more elegant syntax that is consistent with the rest of the API. The new syntax is:
@show.slide
def main_slide():
# content
@show.slide
def vertical_1():
# content
@show.slide
def vertical_2():
# content
TL;DR: vertical slides are now created by declaring a function with the @slide
decorator inside the main slide to which they are vertical.
Thanks to @tialpoy for the suggestions.