asciidoctor / brackets-asciidoc-preview

Live Preview of AsciiDoc for Adobe Brackets
MIT License
51 stars 16 forks source link

Using styles located on a network drive #36

Closed sverremb closed 5 years ago

sverremb commented 7 years ago

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?

nerk commented 7 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.

sverremb commented 7 years ago

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.

nerk commented 7 years ago

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.

nerk commented 7 years ago

This is a problem with asciidoctor.js. I created an issue, you can track it here: https://github.com/asciidoctor/asciidoctor.js/issues/273

nerk commented 5 years ago

Fixed in release 2.0.0 (Asciidoctor.js 1.5.9)