mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix example using `add_config_value
` (#10937)
``add_config_value()`` has mandatory 3 arguments.
This commit is contained in:
parent
bf4a626826
commit
9844162473
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user