Skip to content

Commit

Permalink
standalone mode that doesn't require Internet connection
Browse files Browse the repository at this point in the history
  • Loading branch information
whoenig committed Nov 23, 2024
1 parent 9e87f53 commit 49b1946
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ jobs:
**/*.pdf
**/*.html
media/
reveal.js/
if-no-files-found: error
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "reveal.js"]
path = reveal.js
url = https://github.com/hakimel/reveal.js.git
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@ Develop locally using VSCode and "Run on Save" by "pucelle" extension to run pan

## Present

* Make sure to generate a *standalone* HTML, since the default one requires internet to load styles etc. This is done by github actions, or by using:

```
./run-pandoc.sh --embed-resources --standalone
```

Note that this will embed all media files including videos, so only the HTML file is needed for presenting.
* Make sure to copy all files (including media and reveal.js folder) when presenting on another computer

* There is a presenter mode, but it only works when using the "Live Server" (not when just opening the html file in the browser):

Expand Down
1 change: 1 addition & 0 deletions reveal.js
Submodule reveal.js added at 0d02d8
2 changes: 1 addition & 1 deletion run-pandoc.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
file="$1"
shift
pandoc --citeproc --bibliography *.bib --css custom.css --mathjax --standalone -t revealjs $file.md -o $file.html $@
pandoc --citeproc --bibliography *.bib --css custom.css --mathjax --standalone -t revealjs -V revealjs-url:reveal.js $file.md -o $file.html $@

0 comments on commit 49b1946

Please sign in to comment.