我在 JBake 中使用 asciidoc 格式。我如何为 asciidoc 到 html 生成使用自定义后端?
I'm using the asciidoc formatting in JBake. How can I use a custom backend for the asciidoc to html generation?
我在 JBake 中使用 asciidoc 格式。我正在使用 JBake 的 2.4.0 版。
一切正常,但我想对从 asciidoc 内容生成的 HTML 进行一些更改。通常在 Asciidoctor 中,您可以为自定义后端指定 template_dirs 选项。
我试图通过将以下内容添加到 jbake.properties 文件来在 JBake 中执行相同的操作。
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
的未定义方法“each”
所以我的问题是如何配置 JBake 以使用自定义后端?
在 JBake 的 2.4.0 版本中,这是不可能的。
issue 已在 JBake 项目中提出。
我在 JBake 中使用 asciidoc 格式。我正在使用 JBake 的 2.4.0 版。
一切正常,但我想对从 asciidoc 内容生成的 HTML 进行一些更改。通常在 Asciidoctor 中,您可以为自定义后端指定 template_dirs 选项。
我试图通过将以下内容添加到 jbake.properties 文件来在 JBake 中执行相同的操作。
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
的未定义方法“each”所以我的问题是如何配置 JBake 以使用自定义后端?
在 JBake 的 2.4.0 版本中,这是不可能的。 issue 已在 JBake 项目中提出。