Include a Reveal.js distribution in static and make it default

CDN can still be used via a configuration parameter. This way, development and presentation can be done locally with no network dependency.
This commit is contained in:
dzello
2018-08-13 18:44:29 +02:00
parent b7e475d819
commit 3d05cf68f0
108 changed files with 25229 additions and 24 deletions
+2 -2
View File
@@ -293,8 +293,8 @@ Customize the Reveal.js presentation by setting these values in `config.toml` or
- `reveal_hugo.theme`: The Reveal.js theme used, defaults to "black"
- `reveal_hugo.custom_theme`: The path to a locally hosted Reveal.js theme
- `reveal_hugo.highlight_theme`: The [highlight.js](https://highlightjs.org/) theme used, defaults to "default"
- `reveal_hugo.reveal_cdn`: The location to load Reveal.js files from, defaults to `https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0`
- `reveal_hugo.highlight_cdn`: The location to load highlight.js files from, defaults to `https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0`
- `reveal_hugo.reveal_cdn`: The location to load Reveal.js files from, defaults to the `reveal-js` folder in the static directory to support offline development. To load from a CDN instead, set this value to `https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0` or whatever CDN you prefer.
- `reveal_hugo.highlight_cdn`: The location to load highlight.js files from, defaults to `https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0`. For local development, you can change this to point to a local file.
This is how parameters will look in your `config.toml`: