-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prepath not applied on plotly json when publishing #967
Comments
Thanks for the report and going the extra mile to correctly diagnose the problem. I think this can be fixed by adding a Will try to fix this by eow. |
Just released a patch with this, demo: https://tlienart.github.io/test-plotly/ , demo repo: https://github.com/tlienart/test-plotly ; thanks again for flagging this. |
Thanks a bunch. We will apply this patch soon. I would have loved to create a pull request but was unsure where to fix it without breaking the architecture. |
No worries, you did great already with spotting the precise mistake. Good luck with your website! |
Works like a charm. Thanks for the fast fix. :) |
Great! |
Problem:
We followed this guide: https://franklinjl.org/extras/plotly/index.html
Our site is published on github.io, thus we have
prepath
set.We include the plotly json like this:
\figalt{Barplot showing participants per country}{/assets/pages/datascience/plot_explorative_da_country.json}
After publishing, the json can not be found since
prepath
is not prepended.Suspicion
\figalt
and\fig
both callhtml_plotly
. This function produces the following output:$src
basically being the second argument of\figalt
(/assets/pages/datascience/plot_explorative_da_country.json
)Publishing (and optimizing) calls
fix_links
which adds theprepath
depending on this pattern:But unfortunately this pattern does not apply for the previously generated code part:
The text was updated successfully, but these errors were encountered: