asciidoctor-extensions-lab icon indicating copy to clipboard operation
asciidoctor-extensions-lab copied to clipboard

"Standard" way to overload assets path

Open ggrossetie opened this issue 9 years ago • 2 comments

When using extension(.js) in the chrome extension, assets are stored within the extension package and the URL is chrome-extension://<EXTENSION_ID>/.

I think it would be nice to have a standard way to overload assets path.

ggrossetie avatar Mar 11 '15 12:03 ggrossetie

Maybe stylesdir will do the trick... I will give it a try

ggrossetie avatar Mar 15 '15 16:03 ggrossetie

That may work for now, but we should have a more semantic way of doing this. I like assetsdir. This is fairly similar to this issue: https://github.com/asciidoctor/asciidoctor/issues/659

This complements a discussion I had with Andres at JavaLand about having a mediadir that is the root of media elements and then having specific types, like images, use a relative path from there. That would allow images, videos and audio to be in different folders, same as icons are now (except icons are assumed to be under images, which may not be what we want). Clearly, we need to design the behavior that is ideal and work to integrate it into core (maybe for 1.6.0?)

mojavelinux avatar Apr 01 '15 17:04 mojavelinux