Fix mermaid

This commit is contained in:
Bernat Borràs Civil 2025-03-26 15:08:44 +01:00
parent 6732f3310c
commit 9d4fda1dec

View file

@ -72,9 +72,6 @@ function setMermaidTheme(siteTheme) {
}
const mermaidOptions = { theme: themeName };
const options = Object.assign({}, mermaidOptions, { startOnLoad: true });
console.log(themeName);
console.log(params.flowchart?.mermaid);
console.log(mermaidOptions);
// Initialize mermaid with the new options
mermaid.initialize(options);
@ -88,6 +85,7 @@ function setMermaidTheme(siteTheme) {
}
function initMermaid() {
setMermaidTheme("light");
saveOriginalData().catch(console.error);
}