summaryrefslogtreecommitdiff
path: root/public/views
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-03-04 23:26:27 +0800
committerCheng-Han, Wu2016-03-04 23:26:27 +0800
commitb49d4e22616d7ac2a60db08dc69fdaf9b973cb04 (patch)
treee8b8c440036c6fedddf731b78a747e3a5c2eff4c /public/views
parentc43f9784b4e0ed7299a215f0e3f1e4fce296780f (diff)
Support mermaid in code block diagram and updated all diagram rendering method and styles
Diffstat (limited to 'public/views')
-rw-r--r--public/views/foot.ejs1
-rw-r--r--public/views/head.ejs1
-rw-r--r--public/views/pretty.ejs2
3 files changed, 4 insertions, 0 deletions
diff --git a/public/views/foot.ejs b/public/views/foot.ejs
index 48761d0f..06c194bd 100644
--- a/public/views/foot.ejs
+++ b/public/views/foot.ejs
@@ -50,6 +50,7 @@
<script src="<%- url %>/vendor/sequence-diagrams/sequence-diagram-min.js" defer></script>
<script src="<%- url %>/vendor/flowchart/release/flowchart.min.js" defer></script>
<script src="<%- url %>/vendor/viz.js/viz.js" defer></script>
+<script src="<%- url %>/vendor/mermaid/dist/mermaid.min.js" defer></script>
<script src="<%- url %>/vendor/FileSaver.min.js" defer></script>
<script src="<%- url %>/vendor/store.min.js" defer></script>
<script src="<%- url %>/vendor/js-url/url.min.js" defer></script>
diff --git a/public/views/head.ejs b/public/views/head.ejs
index 17a4a8fb..a00c2e2b 100644
--- a/public/views/head.ejs
+++ b/public/views/head.ejs
@@ -32,6 +32,7 @@
<link rel="stylesheet" href="<%- url %>/vendor/highlight-js/github-gist.min.css">
<link rel="stylesheet" href="<%- url %>/vendor/emojify/css/emojify.min.css">
<link rel="stylesheet" href="<%- url %>/vendor/showup/showup.css">
+<link rel="stylesheet" href="<%- url %>/css/mermaid.css">
<link rel="stylesheet" href="<%- url %>/css/markdown.css">
<link rel="stylesheet" href="<%- url %>/css/index.css">
<link rel="stylesheet" href="<%- url %>/css/extra.css">
diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs
index 9dd61d7d..d21ec612 100644
--- a/public/views/pretty.ejs
+++ b/public/views/pretty.ejs
@@ -24,6 +24,7 @@
<link rel="stylesheet" href='<%- url %>/css/github-extract.css'>
<link rel="stylesheet" href='<%- url %>/css/gist.css'>
<link rel="stylesheet" href='<%- url %>/vendor/highlight-js/github-gist.min.css'>
+ <link rel="stylesheet" href="<%- url %>/css/mermaid.css">
<link rel="stylesheet" href='<%- url %>/css/markdown.css'>
<link rel="stylesheet" href='<%- url %>/vendor/emojify/css/emojify.min.css'>
<link rel="stylesheet" href='<%- url %>/css/extra.css'>
@@ -98,6 +99,7 @@
<script src="<%- url %>/vendor/sequence-diagrams/sequence-diagram-min.js" defer></script>
<script src="<%- url %>/vendor/flowchart/release/flowchart.min.js" defer></script>
<script src="<%- url %>/vendor/viz.js/viz.js" defer></script>
+<script src="<%- url %>/vendor/mermaid/dist/mermaid.min.js" defer></script>
<script src="<%- url %>/vendor/md-toc.js" defer></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }});