QuantEcon / sphinxcontrib-jupyter

A Sphinx Extension for Generating Jupyter Notebooks
BSD 3-Clause "New" or "Revised" License
76 stars 23 forks source link

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

Open mmcky opened 5 years ago

mmcky commented 5 years ago

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.

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

mmcky commented 5 years ago

This issue should be resolved once #266 is implemented.

mmcky commented 5 years ago

this will be fixed by PR #268