asciidoc - 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?
解决方案
推荐阅读
- python - 使用 simhash 检测附近重复的文档
- python - 为什么在 python 中定义类时不能在 __new__ 中使用 list(filter(boolean,python_list))?
- c# - 它说“尝试明确指定类型参数”。我对 AddModulesAsync 有问题,尝试制作一个机器人
- javascript - 用于创建 PDF 的回调 DataTables.net 以显示等待指示器
- apache - Apache 错误 AH00112 - 文档根目录 /usr/Users 不存在(在 macOS Mojave 上)
- python - 使用python从excel单元格中删除换行符
- ios - 在 iOS 中处理和持久化 JSON 数据的选项
- c++ - recv() 获取损坏的数据
- java - 当 Open JDK 存在时,为什么要选择 Oracle JDK?
- python - 创建正则表达式模式以提取浮点数和整数