feat: add mermaid
This commit is contained in:
10
assets/js/mermaid.js
Normal file
10
assets/js/mermaid.js
Normal file
@ -0,0 +1,10 @@
|
||||
var config = {
|
||||
theme: 'default',
|
||||
fontFamily: '"Jost", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";',
|
||||
};
|
||||
|
||||
/* eslint-disable no-undef */
|
||||
|
||||
mermaid.initialize(config);
|
||||
|
||||
/* eslint-enable no-undef */
|
@ -22,6 +22,7 @@
|
||||
@import "components/code";
|
||||
@import "components/syntax";
|
||||
@import "components/comments";
|
||||
@import "components/diagrams";
|
||||
@import "components/forms";
|
||||
@import "components/images";
|
||||
@import "components/search";
|
||||
|
8
assets/scss/components/_diagrams.scss
Normal file
8
assets/scss/components/_diagrams.scss
Normal file
@ -0,0 +1,8 @@
|
||||
.mermaid {
|
||||
margin: 1.5rem 0;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.mermaid svg {
|
||||
height: auto;
|
||||
}
|
Reference in New Issue
Block a user