Skip to content

Commit

Permalink
doc: Sliden shows how to must mulitple scripts to form a single deck
Browse files Browse the repository at this point in the history
  • Loading branch information
mtiller committed Jan 13, 2025
1 parent 3077428 commit e3533db
Show file tree
Hide file tree
Showing 6 changed files with 136 additions and 110 deletions.
19 changes: 19 additions & 0 deletions examples/slidev/deck2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Multiple files

It is possible to split the Presentation
across multiple Julia files, this slide
is proof. The source for these slides can
be found in `slidev/src/deck2.jl` file

````julia
2 + 3
````

````
5
````

---

*This page was generated using [Literate.jl](https://github.com/fredrikekre/Literate.jl).*

1 change: 1 addition & 0 deletions examples/slidev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"build": "slidev build",
"dev": "slidev --open",
"lit": "julia --project=. -m Runlit -i src -o .",
"export": "slidev export"
},
"dependencies": {
Expand Down
210 changes: 100 additions & 110 deletions examples/slidev/slides-17.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions examples/slidev/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ multimedia Julia content, like plots:

![](./slides-17.svg)

---
src: ./deck2.md
---

---

*This page was generated using [Literate.jl](https://github.com/fredrikekre/Literate.jl).*
Expand Down
8 changes: 8 additions & 0 deletions examples/slidev/src/deck2.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# # Multiple files

# It is possible to split the Presentation
# across multiple Julia files, this slide
# is proof. The source for these slides can
# be found in `slidev/src/deck2.jl` file

2 + 3
4 changes: 4 additions & 0 deletions examples/slidev/src/slides.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@ graphplot(A, #hide
linecolor=:darkgrey #hide
) #hide

# ---
# src: ./deck2.md
# ---

0 comments on commit e3533db

Please sign in to comment.