The Asciidoctor Java integration 是官方使用 Asciidoctor 通过 Java 而不是 Ruby 渲染所有 AsciiDoc 文档的手段。
在这个新版本中,以下问题已被解决:
-
Upgraded Asciidoctor gem to 0.1.2. Resolves #17.
-
通过调整JRuby减少了启动时间。解决了https://github.com/asciidoctor/asciidoctor-java-integration/issues/15[#15]问题,相关文档在https://github.com/asciidoctor/asciidoctor-java-integration#optimization[优化]中。
-
将类名
AsciidocDirectoryWalker
重命名为AsciiDocDirectoryWalker
以遵循命名规范。解决了 #12。Warning如果您当前正在使用 AsciidocDirectoryWalker
,您需要重构代码以反映这一名称变更。 -
将''backend'和'doctype''属性提升为流畅API中的选项。解决https://github.com/asciidoctor/asciidoctor-java-integration/issues/11[#11]问题。
-
添加了一个渲染方法,它接受一个+Reader+和+Writer+接口作为输入和输出内容。解决了https://github.com/asciidoctor/asciidoctor-java-integration/issues/9[#9]问题,文档在https://github.com/asciidoctor/asciidoctor-java-integration#usage[usage]中有所记载。
-
将+Asciidoctor#renderFile+方法的参数类型从+java.lang.String+更改为+java.io.File+。
Warning如果您目前正在使用 Asciidoctor#renderFile
方法,您需要重构您的代码以反映这种类型变化。
要了解更多信息,请访问 GitHub 上的 Asciidoctor Java integration 项目。