From cbecb1e9cb13ce6cb816bea1997e561966ae0747 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20Granstr=C3=B6m?=
<5092565+HugoGranstrom@users.noreply.github.com>
Date: Wed, 15 Nov 2023 06:41:35 +0100
Subject: [PATCH] Update Reveal.js to 5.0.2 (#39)
* update links
* update pdf export docs
* add useScrollView() to activate scroll view
---
docsrc/tutorials/pdf_export.nim | 2 +-
docsrc/utils/embeddedReveal.nim | 16 ++++++++--------
src/nimiSlides.nim | 33 ++++++++++++++++-----------------
3 files changed, 25 insertions(+), 26 deletions(-)
diff --git a/docsrc/tutorials/pdf_export.nim b/docsrc/tutorials/pdf_export.nim
index 6fa25cc..736a836 100644
--- a/docsrc/tutorials/pdf_export.nim
+++ b/docsrc/tutorials/pdf_export.nim
@@ -6,7 +6,7 @@ nbText: hlMd"""
Reveal.js has support for exporting a slideshow to PDF using the print function in your browser.
See [their documentation](https://revealjs.com/pdf-export/) for instructions.
Here's a quick list of important notes:
-- Change the url from, for example `http://localhost:8000/slides.html` to `http://localhost:8000/slides.html?print-pdf`. This will show a printer-friendly version of your slides.
+- Change the url from, for example `http://localhost:8000/slides.html` to `http://localhost:8000/slides.html?view=print`. This will show a printer-friendly version of your slides.
- It only works reliably on Chromium based browsers.
"""
diff --git a/docsrc/utils/embeddedReveal.nim b/docsrc/utils/embeddedReveal.nim
index 5e37506..a514a0c 100644
--- a/docsrc/utils/embeddedReveal.nim
+++ b/docsrc/utils/embeddedReveal.nim
@@ -3,16 +3,16 @@ import std / [strutils]
template initEmbeddedSlides*(slidesTheme: SlidesTheme = Black) =
nbRawHtml: hlHtml"""
-
-
+
+
-
+
-
-
-
-
-""" % [($slidesTheme).toLower()]
+
+
+
+
+""" % [($slidesTheme).toLower(), reveal_version]
nbRawHtml: """