An exercise extension for Sphinx.
This package contains a Sphinx extension for producing exercise and solution directives.
- Automatic numbering for exercises and solutions
- Cross-referencing support with
refandnumrefroles - Internationalization support for 27 languages including Chinese, Japanese, Korean, Arabic, Hindi, and more
- HTML and PDF output support
- Gated directive syntax for including executable code and complex content
- Customizable styling with class options and hidden directive support
To get started with sphinx-exercise, first install it through pip:
pip install sphinx-exercise
then, add sphinx_exercise to your sphinx extensions in the conf.py
...
extensions = ["sphinx_exercise"]
...See the Sphinx Exercise documentation for more information.
We welcome all contributions! See the EBP Contributing Guide for general details, and below for guidance specific to sphinx-exercise.