Including an .adoc fragment placed in parent directory

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Including an .adoc fragment placed in parent directory

nopria
Is it possible to include an .adoc fragment placed in the parent directory of the Asciidoctor document issuing the `include` command?

I tried

include::..\test.adoc[]

but it seems to not work.

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Including an .adoc fragment placed in parent directory

mojavelinux
Administrator
Yes, that's expected to work. But you need to make sure the safe mode is set to unsafe. Unsafe is the default for the CLI, but you need to declare it explicitly when using the API (safe: :unsafe).

I recommend always using forward slash as the file separator. It works on all operating systems.

include::../test.adoc[]

Best,

-Dan

On Tue, Oct 15, 2019 at 4:32 AM nopria [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Is it possible to include an .adoc fragment placed in the parent directory of the Asciidoctor document issuing the `include` command?

I tried

include::..\test.adoc[]

but it seems to not work.

Thanks.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Including-an-adoc-fragment-placed-in-parent-directory-tp7228.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux