mirror of https://github.com/mindoc-org/mindoc.git
导出页面移除不存在的mermaid.css引用
parent
8ff4c28927
commit
634d640e31
|
@ -77,7 +77,7 @@ RUN apt install -y --no-install-recommends tzdata
|
|||
RUN dpkg-reconfigure --frontend noninteractive tzdata
|
||||
|
||||
# 安装 calibre 依赖的包
|
||||
RUN apt install -y libgl-dev libnss3-dev libxcomposite-dev libxrandr-dev libxi-dev
|
||||
RUN apt install -y libgl-dev libnss3-dev libxcomposite-dev libxrandr-dev libxi-dev libxdamage-dev
|
||||
# 安装文泉驿字体
|
||||
RUN apt install -y fonts-wqy-microhei fonts-wqy-zenhei
|
||||
# 安装中文语言包
|
||||
|
|
|
@ -51,7 +51,7 @@ git clone https://github.com/mindoc-org/mindoc.git
|
|||
# go包安装
|
||||
go mod tidy
|
||||
# 编译(sqlite需要CGO支持)
|
||||
go build -ldflags "-w"
|
||||
go build -ldflags "-w" -o mindoc.exe main.go
|
||||
# 数据库初始化(此步骤执行之前,需配置`conf/app.conf`)
|
||||
./mindoc install
|
||||
# 执行
|
||||
|
|
|
@ -472,9 +472,6 @@ func (m *BookResult) Converter(sessionId string) (ConvertBookResult, error) {
|
|||
if err := filetil.CopyDir(filepath.Join(conf.WorkingDirectory, "static", "font-awesome"), filepath.Join(tempOutputPath, "styles", "font-awesome")); err != nil {
|
||||
logs.Error("复制CSS样式出错 -> static/font-awesome", err)
|
||||
}
|
||||
if err := filetil.CopyFile(filepath.Join(conf.WorkingDirectory, "static", "editor.md", "lib", "mermaid", "mermaid.css"), filepath.Join(tempOutputPath, "styles", "css", "mermaid.css")); err != nil {
|
||||
logs.Error("复制CSS样式出错 -> static/editor.md/lib/mermaid/mermaid.css", err)
|
||||
}
|
||||
|
||||
eBookConverter := &converter.Converter{
|
||||
BasePath: tempOutputPath,
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
<link href="styles/editor.md/css/editormd.preview.css" rel="stylesheet"/>
|
||||
<link href="styles/css/markdown.preview.css" rel="stylesheet"/>
|
||||
<link href="styles/css/github.css" rel="stylesheet"/>
|
||||
<link href="styles/css/mermaid.css" rel="stylesheet">
|
||||
<link href="styles/css/export.css" rel="stylesheet"/>
|
||||
<link href="styles/font-awesome/css/font-awesome.css" />
|
||||
</head>
|
||||
|
|
Loading…
Reference in New Issue