Commit 4154d8e3 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Ajoute le thème par défaut d'highlight.js.

No related merge requests found
Pipeline #12846 passed with stages
in 50 seconds
Showing with 262 additions and 1102 deletions
+262 -1102
......@@ -14,8 +14,7 @@ const SRC = __dirname + "/src";
const DEST = __dirname + "/public";
const UPSTREAM = "node_modules/reveal.js";
const src = (globs, opts = {}) =>
_src(globs, { base: SRC, ...opts });
const src = (globs, opts = {}) => _src(globs, { base: SRC, ...opts });
const upstream = (globs, opts = {}) => _src(globs, { base: UPSTREAM, ...opts });
const dest = (target, opts = {}) => _dest(target, { base: DEST, ...opts });
......@@ -75,6 +74,19 @@ export const themes = () =>
.pipe(sourcemaps.write("."))
.pipe(dest(`${DEST}/css/theme`));
export const highlightjs_themes = () =>
src("node_modules/highlight.js/scss/default.scss", {
base: "node_modules/highlight.js/scss",
})
.pipe(sourcemaps.init())
.pipe(
sass({
outputStyle: "compressed",
})
)
.pipe(sourcemaps.write("."))
.pipe(dest(`${DEST}/lib/css`));
export const code = () =>
src([`${SRC}/**/*.js`])
.pipe(
......@@ -91,7 +103,7 @@ export const code = () =>
export const build = series(
clean,
parallel(misc, images, code, stylesheets, themes)
parallel(misc, images, code, stylesheets, themes, highlightjs_themes)
);
const archive = () =>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -33,6 +33,7 @@
"gulp-sourcemaps": "^2.6.5",
"gulp-terser": "^1.2.0",
"gulp-zip": "^5.0.1",
"highlight.js": "^9.18.1",
"node-sass": "^4.14.0",
"reveal.js": "^3.9.2"
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment