Fix mermaid
This commit is contained in:
parent
6732f3310c
commit
9d4fda1dec
1 changed files with 1 additions and 3 deletions
|
@ -72,9 +72,6 @@ function setMermaidTheme(siteTheme) {
|
||||||
}
|
}
|
||||||
const mermaidOptions = { theme: themeName };
|
const mermaidOptions = { theme: themeName };
|
||||||
const options = Object.assign({}, mermaidOptions, { startOnLoad: true });
|
const options = Object.assign({}, mermaidOptions, { startOnLoad: true });
|
||||||
console.log(themeName);
|
|
||||||
console.log(params.flowchart?.mermaid);
|
|
||||||
console.log(mermaidOptions);
|
|
||||||
|
|
||||||
// Initialize mermaid with the new options
|
// Initialize mermaid with the new options
|
||||||
mermaid.initialize(options);
|
mermaid.initialize(options);
|
||||||
|
@ -88,6 +85,7 @@ function setMermaidTheme(siteTheme) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function initMermaid() {
|
function initMermaid() {
|
||||||
|
setMermaidTheme("light");
|
||||||
saveOriginalData().catch(console.error);
|
saveOriginalData().catch(console.error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue