From 984416247370a87ad947d89f334a8ce2d8ea6558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Tue, 20 Dec 2022 14:15:00 +0100 Subject: [PATCH] Fix example using ``add_config_value`` (#10937) ``add_config_value()`` has mandatory 3 arguments. --- doc/development/theming.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/development/theming.rst b/doc/development/theming.rst index b46ba0362e..a8de109300 100644 --- a/doc/development/theming.rst +++ b/doc/development/theming.rst @@ -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)