Skip to content

Commit 9844162

Browse files
authored
Fix example using add_config_value (#10937)
``add_config_value()`` has mandatory 3 arguments.
1 parent bf4a626 commit 9844162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/development/theming.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ code may use:
328328
# We connect this function to the step after the builder is initialized
329329
def setup(app):
330330
# Tell Sphinx about this configuration variable
331-
app.add_config_value('my_javascript_variable')
331+
app.add_config_value('my_javascript_variable', 0, 'html')
332332
# Run the function after the builder is initialized
333333
app.connect('builder-inited', add_js_variable)
334334

0 commit comments

Comments
 (0)