File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## [ v0.4.0] ( https://github.com/executablebooks/sphinx-exercise/tree/v0.4.0 ) (2022-3-18)
4+
5+ ### New ✨
6+
7+ Added gated directive syntax for ` exercise ` and ` solution ` directives, which provides
8+ an alternative syntax for building ` exercise ` and ` solution ` that may also include
9+ executable code.
10+
11+ ** Example:**
12+
13+ You may now use ` exercise-start ` and ` exercise-end ` to define the exercise which may
14+ include any type of text, directives and roles between the start and end markers.
15+
16+ ```` md
17+ ```{exercise-start}
18+ :label: ex1
19+ ```
20+
21+ ```{code-cell}
22+ # Some setup code that needs executing
23+ ```
24+
25+ and maybe you wish to add a figure
26+
27+ ```{figure} img/example.png
28+ ```
29+
30+ ```{exercise-end}
31+ ```
32+ ````
33+
34+ This can also be used with ` solution-start ` and ` solution-end ` .
35+
36+ See [ docs] ( https://ebp-sphinx-exercise.readthedocs.io/en/latest/syntax.html#alternative-gated-syntax ) for further details
37+
38+
339## [ v0.3.1] ( https://github.com/executablebooks/sphinx-exercise/tree/v0.3.1 ) (2022-2-01)
440
541### Fixes 🐛
Original file line number Diff line number Diff line change 22
33from setuptools import setup , find_packages
44
5- VERSION = "v0.3.1 "
5+ VERSION = "v0.4.0 "
66
77LONG_DESCRIPTION = """
88This package contains a [Sphinx](http://www.sphinx-doc.org/) extension
You can’t perform that action at this time.
0 commit comments