feat(lib): add auto_next option (#304)

* feat(lib): add `auto_next` option

As suggested in #302, you can now automatically skip a slide. It works both with `present` and `convert --to=html`!

Closes #302

* chore(ci): add trigger on push on main
This commit is contained in:
Jérome Eertmans
2023-10-30 10:12:59 +01:00
committed by GitHub
parent 2853ed08e1
commit 6c52906037
14 changed files with 149 additions and 9 deletions

View File

@ -79,9 +79,11 @@ class Slide(BaseSlide, Scene): # type: ignore[misc]
"""
self.next_slide(*args, **kwargs)
def next_slide(self, *args: Any, loop: bool = False, **kwargs: Any) -> None:
def next_slide(
self, *args: Any, loop: bool = False, auto_next: bool = False, **kwargs: Any
) -> None:
Scene.next_section(self, *args, **kwargs)
BaseSlide.next_slide(self, loop=loop)
BaseSlide.next_slide(self, loop=loop, auto_next=auto_next)
def render(self, *args: Any, **kwargs: Any) -> None:
"""MANIM render."""