1
Fork 0

Extract mermaid to seperate JS file

Means it doesnt break speedpack, for some reason
This commit is contained in:
Jake Howard 2018-03-11 19:38:52 +00:00
parent 4756612715
commit ad19fa779c
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 3 additions and 2 deletions

View file

@ -20,6 +20,7 @@ build: install
$(NODE_BIN)/node-sass $(STATIC_SRC)/scss/style.scss $(STATIC_BUILD)/css/style.css --source-map-embed
cp -r $(BASEDIR)/node_modules/lightgallery/dist/fonts $(STATIC_BUILD)
cp -r $(STATIC_SRC)/img $(STATIC_BUILD)/img
cp node_modules/mermaid/dist/mermaid.min.js $(STATIC_BUILD)/js/mermaid.js
@hugo -vDEF --stepAnalysis --gc
mkdir -p $(OUTPUT_DIR)/.well-known/
cp $(BASEDIR)/static/keybase.txt $(OUTPUT_DIR)/keybase.txt

View file

@ -20,6 +20,8 @@
{{ block "main" . }}{{ end }}
{{ partial "footer.html" . }}
<script src='{{ relURL "/js/mermaid.js" }}'></script>
<script src='{{ relURL "/js/app.js" }}'></script>
</body>
</html>

View file

@ -10,8 +10,6 @@ require('lg-thumbnail/dist/lg-thumbnail');
require('plyr').setup();
var Clipboard = require('clipboard');
var mermaid = require('mermaid');
$('.image').each(function () { // setup div-image hybrids
var ele = $(this);