thclark / sphinx-charts

Interactive charts in sphinx HTML docs, using plot.ly and D3
MIT License
26 stars 3 forks source link

dirhtml builder does not work properly #16

Closed robertodr closed 2 years ago

robertodr commented 2 years ago

When using dirhtml as builder, everything appears to work fine. However, in pages other than index.rst the charts won't be shown. I suppose it's a path resolution issue, but couldn't really pinpoint where the problem is.

thclark commented 2 years ago

Hi @robertodr thanks for the issue. I've definitely used this for charts that don't appear in the index page. Can you provide a reproducible minimum example please?

thclark commented 2 years ago

Haven't had a response or any more information, so closing this. If someone comes across this, feel free to provide more information and I'll re-open the issue!

robertodr commented 2 years ago

So sorry I didn't reply earlier! Here is a reproducer repo: https://github.com/robertodr/issue-16-sphinx-charts The GitHub action compiles using the dirhtml builder and uploads to the gh-pages, which is then served here: https://robertodr.github.io/issue-16-sphinx-charts

The chart in index.rst appears fine, but the one in guide.rst cannot be loaded: https://robertodr.github.io/issue-16-sphinx-charts/guide/