如何在 jekyll-asciidoc 插件上禁用安全模式
How to disable Safe Mode on jekyll-asciidoc plugin
我正在使用 "jekyll-asciidoc" 导入外部文件
插件。
[source,groovy]
----
include:: {projectdir}/src/test/resources/examples/abc.groovy[tags=example1,indent=0]
----
Jekyll 不想包含该文件,因为它在我网站的文件夹之外。那就是消息:
asciidoctor: WARNING: include file has illegal reference to ancestor of jail, auto-recovering
如何从 Jekyll 配置文件中禁用 asciidoctor "Safe Mode"?
你可以试试:
asciidoctor:
safe: 0
我正在使用 "jekyll-asciidoc" 导入外部文件 插件。
[source,groovy]
----
include:: {projectdir}/src/test/resources/examples/abc.groovy[tags=example1,indent=0]
----
Jekyll 不想包含该文件,因为它在我网站的文件夹之外。那就是消息:
asciidoctor: WARNING: include file has illegal reference to ancestor of jail, auto-recovering
如何从 Jekyll 配置文件中禁用 asciidoctor "Safe Mode"?
你可以试试:
asciidoctor:
safe: 0