Skip to content

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

@mmcky

Description

@mmcky

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions