From 20c0514afa471d0fceefd30ff22393e90140d099 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 26 Oct 2022 11:46:12 +0200 Subject: [PATCH] doc: fix example using add_config_value Note `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)