Closed rbsamoht closed 1 year ago
Note that I am using an Antora attribute (named diagramsdir) to link to the PlantUML diagram, as below (source of the docs/modules/ROOT/pages/bug.adoc file). A value for this attribute is provided in the antora-playbook.yml file.
You should use resource id instead of using an attribute: https://docs.antora.org/antora/latest/page/resource-id-coordinates/.
plantuml::example$diagram1.puml[format=svg,align="center"]
You will need to move diagram1.puml
into the examples
directory: https://docs.antora.org/antora/latest/page/include-an-example/#examples-root
Skipping plantuml block macro. ENOENT: no such file or directory, open 'docs/modules/ROOT/pages/diagrams/diagram1.puml'
My guess is that the extension is trying to resolve docs/modules/ROOT/pages/diagrams/diagram1.puml
from the pages
directory and not from the working directory/root.
Anyway, you should not use relative paths when using Antora: https://docs.antora.org/antora/latest/page/resource-id/#important
I'm closing this issue, if you have questions please join the community chat: https://chat.asciidoctor.org/
Environment
Issue description
I am getting the error message below when generating HTML from my Antora project (project source can be found here):
I am confused because this path exists in my project structure.
Below is the content of my
antora-playbook.yml
file:Below is the directory structure of my Antora project:
Note that I am using an Antora attribute (named
diagramsdir
) to link to the PlantUML diagram, as below (source of thedocs/modules/ROOT/pages/bug.adoc
file). A value for this attribute is provided in theantora-playbook.yml
file.Steps to reproduce the issue
antora generate antora-playbook.yml
, using the Antora playbook presented aboveIs there anything I am doing wrong ?