support diagram plotting via mermaid !

这个提交包含在:
binary-husky
2024-01-15 02:49:21 +08:00
父节点 a2099f1622
当前提交 71adc40901
共有 8 个文件被更改,包括 1825 次插入8 次删除

查看文件

@@ -67,8 +67,14 @@ def adjust_theme():
button_cancel_text_color_dark="white",
)
with open(os.path.join(theme_dir, "common.js"), "r", encoding="utf8") as f:
js = f"<script>{f.read()}</script>"
js = ""
for jsf in [
os.path.join(theme_dir, "common.js"),
os.path.join(theme_dir, "mermaid.min.js"),
os.path.join(theme_dir, "mermaid_loader.js"),
]:
with open(jsf, "r", encoding="utf8") as f:
js += f"<script>{f.read()}</script>"
# 添加一个萌萌的看板娘
if ADD_WAIFU: