sphinxcontrib-jupyter icon indicating copy to clipboard operation
sphinxcontrib-jupyter copied to clipboard

BUG: Root Path in `.. figure::` not being respected

Open mmcky opened this issue 4 years ago • 2 comments

In a Julia lecture contained in a directory a figure import is using this syntax. getting_started_julia/getting_started.rst

.. figure:: /_static/figures/julia_term_1.png
   :scale: 100%

The resulting html appears not to reference the root level but rather a local copy of static.

<img src="_static/figures/julia_term_1.png" style="width:100%;height:100%">

This breaks the Julia images and figures or any project with directories.

  • [ ] the current work around is to have _static in every folder for jl project until we have a jupuyter_html_path option added to add in the jl relative to the root level of the web server or track the relative path to include as ../_static

@AakashGfude I will add the above workaround for now to the build script but we should make this a high-priority

mmcky avatar Aug 24 '19 02:08 mmcky

This issue should be resolved once #266 is implemented.

mmcky avatar Sep 03 '19 10:09 mmcky

this will be fixed by PR #268

mmcky avatar Sep 10 '19 03:09 mmcky