Closed mmcky closed 4 years ago
The _static
folder is currently copied to bring across figures
-- so if we assume there are no externally referenced files (which I think is reasonable assumption for now) then we should
include this won't work for execution. See issue https://github.com/executablebooks/MyST-NB/issues/274literalinclude
direct in the myst
rather than include the content
Perhaps the best solution will be as suggested in https://github.com/executablebooks/MyST-NB/issues/274 and translate literalinclude
items to code-cell
that is read in from a file.
Updated Decision:
I think sphinx-tomyst
should actually be updated to add literalinclude
directive and a file reference (as that is a true represnetation of the rst
) and any adaptation required to bring in executability
to the jupyter-book
workflow is an update to the source markup
fixed by PR #93
There is an issue with translation of
literalinclude
tomyst
includes the contents of the file in the
myst
output.This helps with not requiring to copy over assets when translating to
myst
but isn't a particularly friendly approach to translation.We could:
trackliteralinclude
files + paths and copy them across. Then we can include{literalinclude}
directivesmyst
but add support forcode-cell
formyst_nb
target option.