首页 > 解决方案 > inlcude directive in asciidoc always evaluates relative

问题描述

I have an include in one of my asciidoc files

include::{sourcedir}/samples/test.java[]

sourcedir is set when calling the asciidoc converter and contains an absolute path (starting /Users/User1...). However, asciidoc always puts the whole current path in front of the file when evaluating the expression. This ends up in an error

SEVERE: test.adoc: line 5: include file not found: /Users/User1/git/repo/workDir/Users/User1...[]test.jav

How can I make sure that asciidoc evaluated that path as an absolute path?

标签: asciidoc

解决方案


推荐阅读