From 489a347c22cc5cfe189a7aed5420ef5e49ca924c Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 27 May 2018 00:26:27 +0200 Subject: [PATCH] Add hljs --- build.php | 4 +++- package.json | 1 + views/mio/master.twig | 2 ++ yarn.lock | 4 ++++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/build.php b/build.php index 971783fe..6633e277 100644 --- a/build.php +++ b/build.php @@ -7,6 +7,7 @@ * NPM module files to be imported into /js/libraries.js */ define('NODE_IMPORT_JS', [ + 'highlightjs/highlight.pack.min.js', 'timeago.js/dist/timeago.min.js', 'timeago.js/dist/timeago.locales.min.js', ]); @@ -15,9 +16,10 @@ define('NODE_IMPORT_JS', [ * NPM module files to be imported into /css/libraries.css */ define('NODE_IMPORT_CSS', [ + 'highlightjs/styles/default.css', + 'highlightjs/styles/tomorrow-night.css', ]); - /** * BEYOND THIS POINT YOU WON'T HAVE TO EDIT THE CONFIG PRETTY MUCH EVER */ diff --git a/package.json b/package.json index a224c9a0..c9fa9d16 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "dependencies": { + "highlightjs": "^9.10.0", "timeago.js": "^3.0.2" } } diff --git a/views/mio/master.twig b/views/mio/master.twig index 6c80932c..05f7a188 100644 --- a/views/mio/master.twig +++ b/views/mio/master.twig @@ -15,6 +15,7 @@ {% include '@mio/_layout/meta.twig' %} +
@@ -81,6 +82,7 @@