mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-09-16 18:55:06 +08:00
Compare commits
4 Commits
v5.5.2
...
pre-commit
Author | SHA1 | Date | |
---|---|---|---|
a28786d381 | |||
69eee116c5 | |||
9abe05b622 | |||
2c6421dcbd |
@ -21,13 +21,13 @@ repos:
|
|||||||
exclude: poetry.lock
|
exclude: poetry.lock
|
||||||
args: [--autofix, --trailing-commas]
|
args: [--autofix, --trailing-commas]
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.12.10
|
rev: v0.13.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--fix]
|
args: [--fix]
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: v1.17.1
|
rev: v1.18.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
additional_dependencies: [types-requests, types-setuptools]
|
additional_dependencies: [types-requests, types-setuptools]
|
||||||
|
@ -10,6 +10,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
(unreleased)=
|
(unreleased)=
|
||||||
## [Unreleased](https://github.com/jeertmans/manim-slides/compare/v5.5.2...HEAD)
|
## [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)=
|
||||||
## [v5.5.2](https://github.com/jeertmans/manim-slides/compare/v5.5.1...v5.5.2)
|
## [v5.5.2](https://github.com/jeertmans/manim-slides/compare/v5.5.1...v5.5.2)
|
||||||
|
|
||||||
|
@ -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 |
|
| 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 |
|
| Support for ManimGL | Yes | No | No | No |
|
||||||
| Web Browser presentations | Yes | No | Yes | 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
|
## Citing
|
||||||
|
|
||||||
|
@ -50,11 +50,11 @@
|
|||||||
</div>
|
</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 }}/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/ -->
|
<!-- To include plugins, see: https://revealjs.com/plugins/ -->
|
||||||
{% if has_notes %}
|
{% 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/markdown/markdown.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/plugin/notes/notes.min.js"></script>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- <script src="index.js"></script> -->
|
<!-- <script src="index.js"></script> -->
|
||||||
@ -262,6 +262,23 @@
|
|||||||
// Time before the cursor is hidden (in ms)
|
// Time before the cursor is hidden (in ms)
|
||||||
hideCursorTime: {{ hide_cursor_time }}
|
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 %}
|
{% if one_file %}
|
||||||
// Fix found by @t-fritsch and @Rapsssito on GitHub
|
// Fix found by @t-fritsch and @Rapsssito on GitHub
|
||||||
// see: https://github.com/hakimel/reveal.js/discussions/3362#discussioncomment-11733074.
|
// see: https://github.com/hakimel/reveal.js/discussions/3362#discussioncomment-11733074.
|
||||||
@ -306,6 +323,13 @@
|
|||||||
Reveal.on( 'ready', fixBase64VideoBackground );
|
Reveal.on( 'ready', fixBase64VideoBackground );
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</script>
|
</script>
|
||||||
|
{% if env['READTHEDOCS'] %}
|
||||||
|
<style>
|
||||||
|
readthedocs-flyout, readthedocs-notification {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!-- Add a clock to each section dynamically using JavaScript -->
|
<!-- Add a clock to each section dynamically using JavaScript -->
|
||||||
<script>
|
<script>
|
||||||
|
Reference in New Issue
Block a user