diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ff38cd..e7e0d4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [v0.2.1](https://github.com/executablebooks/sphinx-exercise/tree/v0.2.1) (2021-10-08) + +### New ✨ + +Added latex support for sphinx-exercise + +### Improved 👌 + +Refactored code to make it modular and robust, fixing some of the bugs mentioned below. + +### Fixes 🐛 + +- Exercise node title now visible for sphinx > 3.2 +- Solution directive fix issue#32 + ## [v0.1.1](https://github.com/executablebooks/sphinx-exercise/tree/v0.1.1) (2020-10-10) [Full Changelog](https://github.com/executablebooks/sphinx-exercise/compare/v0.1.0...v0.1.1) diff --git a/setup.py b/setup.py index 63ab22e..355c373 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages -VERSION = "v0.1.1" +VERSION = "v0.2.1" LONG_DESCRIPTION = """ This package contains a [Sphinx](http://www.sphinx-doc.org/en/master/) extension diff --git a/sphinx_exercise/__init__.py b/sphinx_exercise/__init__.py index cc86d25..d9061dd 100644 --- a/sphinx_exercise/__init__.py +++ b/sphinx_exercise/__init__.py @@ -161,7 +161,7 @@ def process_reference(self, node, default_title=""): functionality requirements. """ label = get_refuri(node) - if label in self.env.exercise_list: + if hasattr(self.env, "exercise_list") and label in self.env.exercise_list: source_node = self.env.exercise_list[label].get("node") # if reference source is a solution node if is_solution_node(source_node):