executablebooks / sphinx-exercise

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

Extension causes issue when {exercise} and {solution} aren't used but extension is loaded #46

Closed mmcky closed 2 years ago

mmcky commented 2 years ago

Describe the problem

Extension causes issue when {exercise} and {solution} aren't used but extension is loaded

Link to your repository or website

https://github.com/QuantEcon/lecture-datascience.myst/pull/199

Steps to reproduce

Build the lecture-datascience.myst quantecon lecture site

The version of Python you're using

No response

Your operating system

No response

Versions of your packages

No response

Additional context

To resolve this I need to ensure the sphinx_exercise_registry is initialised when the extension is loaded.

mmcky commented 2 years ago

closing as a duplicate of #44