de-jcup / eclipse-asciidoctor-editor

An eclipse editor for asciidoctor files
https://marketplace.eclipse.org/content/asciidoctor-editor
Other
59 stars 15 forks source link

Test attribute `docdir in asciidoctor config files #489

Open de-jcup opened 1 year ago

de-jcup commented 1 year ago

Wanted to support his, after testing we had following situation

docdir is set by asciidoctor ready only.

Also ...

Eclipse asciidoctor editor does set the base dir at render time And this seems to change docdir (maybe).

A file rendered from command line has following: /path/testscripts/docdir-example/the-example.adoc

Rendered by asciidoc 2.0.16 from command line: docdir = /path/testscripts/docdir-example/

Rendered by asciidoc editor v3.0.1 `docdir = /path/testscriptsv

But ... when having /path/testscripts/docdir-example/the-example.adoc and /path/testscripts/docdir-example/subfolder/the-included-example.adoc

Inside the-included-example.adoc we have still the same output. Means: docdir is only set at runtime for FIRST document (and seems to be the same as base dir?)

de-jcup commented 1 year ago

When setting the base directory attribute via -B parameter on console, I have exactly the same problem like in eclipse asciidoctor editor: the docdir has changed.