Relative InterDocument Cross References - one level up

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

Relative InterDocument Cross References - one level up

GCoppez
When using relative inter document cross references to other documents  with syntax as follows <<document1.adoc#, document1>>, how does one navigate up a folder level? In general, I would think to use <<../document1.adoc#, document1>> but this doesn't seem to work. Any body have any suggestions?
Reply | Threaded
Open this post in threaded view
|

Re: Relative InterDocument Cross References - one level up

Jeremie Bresson
I tried it with the asciidoctor-chrome-extension and it does not work either for me.

It seems that you cannot refer to a document with a path starting with a dot or with a slash.

However, this workaround is working:

[source,asciidoc]
----
Go to <<dir/../../document1.adoc#, document1>>
----

And it points to the correct document. The folder "dir" does not need to exist.
Reply | Threaded
Open this post in threaded view
|

Re: Relative InterDocument Cross References - one level up

mojavelinux
Administrator
Wow, cool workaround Jeremie! Obviously, we want to make it right, but it's nice to know that there's at least a way through for now ;)

This is a known issue that is currently scheduled to be fixed in 1.5.4. See https://github.com/asciidoctor/asciidoctor/issues/844. I noted the workaround in the comments of the issue.

Thanks!

-Dan

On Wed, Apr 22, 2015 at 1:19 AM, Jeremie Bresson [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I tried it with the asciidoctor-chrome-extension and it does not work either for me.

It seems that you cannot refer to a document with a path starting with a dot or with a slash.

However, this workaround is working:

[source,asciidoc]
----
Go to <<dir/../../document1.adoc#, document1>>
----

And it points to the correct document. The folder "dir" does not need to exist.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Relative-InterDocument-Cross-References-one-level-up-tp3006p3010.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--