Login  Register

Including an .adoc fragment placed in parent directory

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

Including an .adoc fragment placed in parent directory

nopria
3 posts
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
| More
Print post
Permalink

Re: Including an .adoc fragment placed in parent directory

mojavelinux
Administrator
2681 posts
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