Skip to content

Commit f555d72

Browse files
authored
RELEASE: v0.4.0 (#56)
1 parent a5f627a commit f555d72

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
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 🐛

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from setuptools import setup, find_packages
44

5-
VERSION = "v0.3.1"
5+
VERSION = "v0.4.0"
66

77
LONG_DESCRIPTION = """
88
This package contains a [Sphinx](http://www.sphinx-doc.org/) extension

0 commit comments

Comments
 (0)