From 5075cd2e10d8b780d56f06c09329c32f48aa8a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr> Date: Sun, 20 Oct 2019 00:39:00 +0200 Subject: [PATCH] Correction de l'URL relative de reveal.js. --- Gruntfile.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 95fa132..277681f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,5 +1,9 @@ const readdirp = require("readdirp"); -const { extname } = require("path"); +const { + extname, + dirname, + posix: { relative } +} = require("path"); module.exports = grunt => { const PUBLIC_HOST = process.env.PUBLIC_HOST || "localhost"; @@ -60,6 +64,7 @@ module.exports = grunt => { "--toc", `--toc-depth=${TOC_DEPTH}`, `--slide-level=${SLIDE_LEVEL}`, + `--variable=revealjs-url:${relative(dirname(pres), "./reveal.js")}`, "--variable=theme:irstea", "--variable=history:true", env === "dev" && -- GitLab