【问题标题】:I'm using the asciidoc formatting in JBake. How can I use a custom backend for the asciidoc to html generation?我在 JBake 中使用 asciidoc 格式。如何将自定义后端用于 asciidoc 到 html 生成?
【发布时间】: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


    【解决方案1】:

    在 JBake 的 2.4.0 版本中,这是不可能的。 JBake 项目中提出了issue

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多