【发布时间】:2015-12-04 08:17:30
【问题描述】:
我在 JBake 中使用 asciidoc 格式。我使用的是 2.4.0 版的 JBake。
一切运行良好,但我想对从 asciidoc 内容生成的 HTML 进行一些更改。通常在 Asciidoctor 中,您可以为自定义后端指定 template_dirs 选项。
我尝试在 JBake 中做同样的事情,将以下内容添加到 jbake.properties 文件中。
asciidoctor.option.template_dirs=src/custom-asciidoctor-backends/erb/html5
目录 src/custom-asciidoctor-backends/erb/html5 包含原始后端,我没有任何更改。
这给了我以下错误
发生意外错误:(NoMethodError) asciidoctor: FAILED: : 无法解析源,未定义方法“src/custom-asciidoctor-backends/erb/html5”:String
所以我的问题是如何配置 JBake 以使用自定义后端?
【问题讨论】:
标签: asciidoctor jbake