executablebooks / sphinx-exercise

A Sphinx extension for producing exercise and solution directives.
https://ebp-sphinx-exercise.readthedocs.io
MIT License
19 stars 7 forks source link

exercise icon not rendering properly #63

Open daviddesancho opened 1 year ago

daviddesancho commented 1 year ago

Describe the bug

When I render a jupyterbook including exercise directives I find that the icon used is not a pencil, but a bell.

Someone at stackoverflow has suggested a possible culprit.

Reproduce the bug

Information in my requirements.txt file:

sphinx
sphinx-exercise

Information in the _config.yml file:

sphinx:
  config:
    mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
  extra_extensions:
    - sphinx_exercise

In the markdown notebooks:

:nonumber:
:class: dropdown

Text of the exercise

List your environment

Jupyter Book      : 0.15.1
External ToC      : 0.3.1
MyST-Parser       : 0.18.1
MyST-NB           : 0.17.1
Sphinx Book Theme : 1.0.1
Jupyter-Cache     : 0.5.0
NbClient          : 0.5.13
welcome[bot] commented 1 year ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

AakashGfude commented 1 year ago

Hi @daviddesancho, Thanks for pointing this out. The solution seems reasonable. We will make a fix soon.

jkooij commented 2 months ago

I'm seeing the same problem while trying to use sphinx-exercise in a jupyter-book. After using pip install sphinx-exercise I created a clean build using

jupyter-book clean .
jupyter-book build . --all

but that did not solve the problem, I see the bell and the missing f303 icon placeholder:

image