Replies: 1 comment 3 replies
-
This comes up often and is discussed in #169. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The use case:
I'm making a chart and I want to include some team logos, so I stick them in a folder, maybe
/docs/logos
.Then I make a plot:
Of course, this doesn't work because the SVGs aren't referenced anywhere that observable knows about, and so the path
/docs/logos
isn't found.The proposal:
/docs/static
or/static
or something like that ought to be a directory for static assets to live that you can reference unconditionally, and is always carried over into the built site. That way, you can just stick images somewhere in/docs/static
, reference them in a plot, and no monkey business is required.The alternatives:
I know that I could make a
FileAttachement
for each image, or zip them all up and pull them out of a zip file.Both of those seem like unnecessaary work, when all I want to do is reference the images in a graph.
(Have I missed an alternative?)
Beta Was this translation helpful? Give feedback.
All reactions