Compare commits

..

4 Commits

Author SHA1 Message Date
a28786d381 chore(deps): pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.12.12 → v0.13.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.12...v0.13.0)
- [github.com/pre-commit/mirrors-mypy: v1.17.1 → v1.18.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.17.1...v1.18.1)
2025-09-15 19:03:56 +00:00
69eee116c5 chore(docs): update template in docs (#565)
The template displayed in the *Customize your RevealJS slides* was out of sync.
2025-09-12 10:09:05 +02:00
9abe05b622 chore(deps): pre-commit autoupdate (#563)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.12.10 → v0.12.12](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.10...v0.12.12)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-09-09 14:43:53 +02:00
2c6421dcbd chore(docs): update comparison table (#561) 2025-08-27 13:05:23 +02:00
4 changed files with 37 additions and 5 deletions

View File

@ -21,13 +21,13 @@ repos:
exclude: poetry.lock
args: [--autofix, --trailing-commas]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.10
rev: v0.13.0
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.17.1
rev: v1.18.1
hooks:
- id: mypy
additional_dependencies: [types-requests, types-setuptools]

View File

@ -10,6 +10,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
(unreleased)=
## [Unreleased](https://github.com/jeertmans/manim-slides/compare/v5.5.2...HEAD)
(unreleased-chore)=
### Chore
- Update the comparison table in the README.
[#560](https://github.com/jeertmans/manim-slides/pull/560)
- Update the template in the *Customize your RevealJS slides* section.
[#565](https://github.com/jeertmans/manim-slides/pull/565)
(v5.5.2)=
## [v5.5.2](https://github.com/jeertmans/manim-slides/compare/v5.5.1...v5.5.2)

View File

@ -150,7 +150,7 @@ Below is a comparison of the most used ones with Manim Slides:
| Note | Requires minimal modif. in scenes files | Requires minimal modif. in scenes files | Requires the usage of sections, and configuration through graphical interface | Relies on `nbconvert` to create slides from a Notebook |
| Support for ManimGL | Yes | No | No | No |
| Web Browser presentations | Yes | No | Yes | No |
| Offline presentations | Yes, with Qt | Yes, with OpenCV | No | No
| Offline presentations | Yes, with Qt, [RevealJS](https://revealjs.com/) (any web browser), or PowerPoint | Yes, with OpenCV | No | No
## Citing

View File

@ -50,11 +50,11 @@
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/reveal.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/plugin/notes/notes.min.js"></script>
<!-- To include plugins, see: https://revealjs.com/plugins/ -->
{% if has_notes %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/plugin/markdown/markdown.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/plugin/notes/notes.min.js"></script>
{% endif %}
<!-- <script src="index.js"></script> -->
@ -262,6 +262,23 @@
// Time before the cursor is hidden (in ms)
hideCursorTime: {{ hide_cursor_time }}
});
// Override SPACE to play / pause the video
Reveal.addKeyBinding(
{
keyCode: 32,
key: 'SPACE',
description: 'Play / pause video'
},
() => {
var currentVideos = Reveal.getCurrentSlide().slideBackgroundContentElement.getElementsByTagName("video");
if (currentVideos.length > 0) {
if (currentVideos[0].paused == true) currentVideos[0].play();
else currentVideos[0].pause();
} else {
Reveal.next();
}
}
);
{% if one_file %}
// Fix found by @t-fritsch and @Rapsssito on GitHub
// see: https://github.com/hakimel/reveal.js/discussions/3362#discussioncomment-11733074.
@ -306,6 +323,13 @@
Reveal.on( 'ready', fixBase64VideoBackground );
{% endif %}
</script>
{% if env['READTHEDOCS'] %}
<style>
readthedocs-flyout, readthedocs-notification {
display: none;
}
</style>
{% endif %}
<!-- Add a clock to each section dynamically using JavaScript -->
<script>