From fde94a8a865ad58232c449708afb7cb5dc5b3531 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 4 Sep 2018 21:10:19 +0200 Subject: [PATCH] Fix use_storyboard Initialize variable with False and not with empty string - the variable is a boolean. Update example. Changed this so that use_storybard = true in doc/source/conf.py will not result in: The config value `use_storyboard' has type `bool', defaults to `str'. Change-Id: I2ed164b9b0badade702c50543ac1a5eea4d1867b --- doc/source/index.rst | 1 + openstackdocstheme/ext.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/source/index.rst b/doc/source/index.rst index 93966be..0988327 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -78,6 +78,7 @@ Using the theme # openstackdocstheme options repository_name = 'openstack-infra/infra-manual' + use_storyboard = True bug_project = 'openstack-ci' bug_tag = '' diff --git a/openstackdocstheme/ext.py b/openstackdocstheme/ext.py index 551f08c..9839866 100644 --- a/openstackdocstheme/ext.py +++ b/openstackdocstheme/ext.py @@ -297,7 +297,7 @@ def setup(app): app.add_config_value('bug_project', '', 'env') app.add_config_value('bug_tag', '', 'env') app.add_config_value('openstack_projects', [], 'env') - app.add_config_value('use_storyboard', '', 'env') + app.add_config_value('use_storyboard', False, 'env') app.add_html_theme( 'openstackdocs', os.path.abspath(os.path.dirname(__file__)) + '/theme/openstackdocs',