Skip to content

[WIP] Videos displayed directly from example blocks #15

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ jobs:
xvfb-run -s '-screen 0 1024x768x24' julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.add(name = "DocumenterVitepress", rev = "master")
Pkg.add([
PackageSpec(name = "DocumenterVitepress", rev = "master"),
PackageSpec(url = "https://github.com/asinghvi17/Documenter.jl", rev = "patch-4"),
])
Pkg.instantiate()'
env:
DISPLAY: ':0'
Expand Down
4 changes: 3 additions & 1 deletion docs/src/makie.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ rotation looks as elliptical as it can.
Now, we can use Makie's `record` function to record an animation with
this:
```@example simple
record(fig, "path.mp4", LinRange(0, 5, 150); framerate = 30) do t
io = Record(fig, LinRange(0, 5, 150); framerate = 30) do t
set_view!(ax, path(t))
end
# save("video.mp4", io)
io # hide
```
![A rotating view of a surface](path.mp4)

Expand Down
Loading