We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2f949d commit 52067b3Copy full SHA for 52067b3
1 file changed
sphinx_exercise/__init__.py
@@ -156,7 +156,8 @@ def setup(app: Sphinx) -> Dict[str, Any]:
156
#Define the extension configuration variables
157
app.add_config_value("exercise_title_text", "Exercise", "env") # The title of the exercise
158
app.add_config_value("solution_title_text", "Solution to", "env") # The title of the solution
159
- app.add_config_value("language_map", None, "env") # A map of translated strings
+ if not hasattr(app.config, "language_map"):
160
+ app.add_config_value("language_map", None, "env") # A map of translated strings
161
app.add_config_value("hide_solutions", False, "env")
162
163
app.connect("config-inited", init_numfig) # event order - 1
0 commit comments