I have a asciidoctor template similar to this one:
I would like to include a link into my documents which points to the asciidoc file that was used to generate the document.
Is there a way to access the asciidoc filename within my template?
I'm using the asciidoctor-maven-plugin to render my documents.
答案 0 :(得分:0)
通过查看built-in data attributes,我认为您正在寻找{docfile}
(评估取决于文档的处理方式以及处理的时间和地点。)
对我而言,它适用于asciidoctor-maven-plugin(我获取文件的绝对路径)但不在chrome预览中。