Include URI content

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

Include URI content

AsciiWriter
This post was updated on .
Dear AsciiDoc-Community

I'm fairly new to the AsciiDoc world and trying to find my way around the concepts.
So this issue of mine might be due to incompetence.

The issue:

----
some.adoc file content
= Some Title

include::another.adoc[]

include::https://mydomain.com/uri.adoc[]
----

----
pycharm IDE (with asciidoc plugin) preview and rendering

Some Title

Content of another.adoc

Unresolved Antora prefix 'https::'
----

----
atom editor (with asciidoc plugin) preview and rendering

Some Title

Content of another.adoc

https://mydomain.com/uri.adoc
----

The https://asciidoctor.org/docs/user-manual/ seems straight forward and with the methods stated there (asciidoctor -a allow-uri-read filename.adoc) I still get the same outcome for both. (safe mode was set to UNSECURE)

Could you help me figure out how to include files/web pages in my doc?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Include URI content

Alexander Schwartz
The protocol identifier (https) should be followed by one colon (:). In your example it is followed by two colons (::).

Please remove one colon an try again.

You will still need the allow-uri-read that is not enabled by default for the pycharm IDE plugin. I need to look that up once I am back at my IDE how to set that up.
Alexander Schwartz (alexander.schwartz@gmx.net)
https://www.ahus1.de
Reply | Threaded
Open this post in threaded view
|

Re: Include URI content

AsciiWriter
Yes, sorry. That's a typo in the post.
Reply | Threaded
Open this post in threaded view
|

Re: Include URI content

mojavelinux
Administrator
Antora does not currently support including content from a URL (even though Asciidoctor does). The reason is technical and we're still trying to solve it.

Please follow this issue for updates: https://gitlab.com/antora/antora/issues/246

Best Regards,

-Dan

On Wed, Mar 4, 2020 at 9:30 AM AsciiWriter [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Yes, sorry. That's a typo in the post.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Include-URI-content-tp7721p7723.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
Reply | Threaded
Open this post in threaded view
|

Re: Include URI content

Alexander Schwartz
In reply to this post by AsciiWriter
I've tried this in the the PyCharm IDE and the Antora error message you saw was an error in the plugin. It was showing even when you're not using Antora.

I've opened issue https://github.com/asciidoctor/asciidoctor-intellij-plugin/issues/417 to follow up on this.

Release 0.30.41 of the plugin will be available later today to fix this issue.

In order have the include rendered in the preview, go to "Settings | Languages & Frameworks | AsciiDoc | Attributes" and add the attribute with he key "allow-uri-read". The "Apply" button will activate once you leave the focus of the attribute editing window.

As long as you don't add the attribute, the include will be shown as a link instead.

Regards,
Alexander  
Alexander Schwartz (alexander.schwartz@gmx.net)
https://www.ahus1.de
Reply | Threaded
Open this post in threaded view
|

Re: Include URI content

AsciiWriter
In reply to this post by mojavelinux
Thank you
Reply | Threaded
Open this post in threaded view
|

Re: Include URI content

AsciiWriter
In reply to this post by Alexander Schwartz
Amazing, thank you for your help