Closed sverremb closed 5 years ago
Try to use forward slashes, even on Windows.
ifndef::template-url[] :template-url: //networkdrive/templates/Asciidoc include::{template-url}/styles/core-styles.adoc[] endif::[]
I actually never tried UNC names. If they do not work, mapping the share to a drive letter and use that instead should work, though.
Thanks for the quick reply!
Unfortunately, it didn't work. I think I've tried every possible combination of back- and forward-slashes, even tried using the drive letter on the network drive.
You are right, I just tried it myself. It works with Asciidoctor, just not for the preview plugin. I think it might be related to prepending the user definable base directory (from the settings dialog). Could be a bug, I'll have to check.
This is a problem with asciidoctor.js. I created an issue, you can track it here: https://github.com/asciidoctor/asciidoctor.js/issues/273
Fixed in release 2.0.0 (Asciidoctor.js 1.5.9)
I've got the following in my .adoc-files to enable the styles found in the template-url:
ifndef::template-url[] :template-url: \\networkdrive\templates\Asciidoc include::{template-url}\styles\core-styles.adoc[] endif::[]
In the preview I get the following error message: Unresolved directive in - include::\\networkdrive\templates\Asciidoc\styles\core-styles.adoc[]
Does brackets asciidoc preview support what I'm trying to do here?