We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8e711bc + a93218b commit b02f6dfCopy full SHA for b02f6df
1 file changed
versionwarning/signals.py
@@ -8,7 +8,7 @@
8
JSON_DATA_FILENAME = 'versionwarning-data.json'
9
10
11
-def generate_versionwarning_data_json(app, **kwargs):
+def generate_versionwarning_data_json(app, config=None, **kwargs):
12
"""
13
Generate the ``versionwarning-data.json`` file.
14
@@ -23,7 +23,7 @@ def generate_versionwarning_data_json(app, **kwargs):
23
# In Sphinx >= 1.8 we use ``config-initied`` signal which comes with the
24
# ``config`` object and in Sphinx < 1.8 we use ``builder-initied`` signal
25
# that doesn't have the ``config`` object and we take it from the ``app``
26
- config = kwargs.pop('config', None)
+ config = config or kwargs.pop('config', None)
27
if config is None:
28
config = app.config
29
0 commit comments