Skip to content

Commit

Permalink
Fix example using add_config_value (#10937)
Browse files Browse the repository at this point in the history
``add_config_value()`` has mandatory 3 arguments.
  • Loading branch information
marxin authored Dec 20, 2022
1 parent bf4a626 commit 9844162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/development/theming.rst
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ code may use:
# We connect this function to the step after the builder is initialized
def setup(app):
# Tell Sphinx about this configuration variable
app.add_config_value('my_javascript_variable')
app.add_config_value('my_javascript_variable', 0, 'html')
# Run the function after the builder is initialized
app.connect('builder-inited', add_js_variable)
Expand Down

0 comments on commit 9844162

Please sign in to comment.