From 59d0e664d5bbb5c494f011abf726b2860c72c108 Mon Sep 17 00:00:00 2001 From: Thales Elero Cervi Date: Tue, 17 Oct 2023 08:22:41 -0300 Subject: [PATCH] Fix sphinx configuration errors This repo sphinx configuration file needs to be updated in order to align with new sphinx code that might generate warnings/errors. - Set language config to English [1] to avoid a warning that Zuul will handle as an error. - Fix extlinks syntax according to [2] [1] https://github.com/sphinx-doc/sphinx/issues/10474 [2] https://github.com/sphinx-doc/sphinx/issues/11094 Change-Id: I218b78d9adc42347850e5fc23e264cd29f5589f2 Signed-off-by: Thales Elero Cervi --- doc/source/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 09b1a82..0a0a166 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -49,7 +49,7 @@ extensions = [ # Define shorthand roles for making links to common destinations. extlinks = { - 'repo': ('https://opendev.org/%s', ''), + 'repo': ('https://opendev.org/%s', '%s'), } # Add any paths that contain templates here, relative to this directory. @@ -72,7 +72,7 @@ bug_tag = 'stx.bug' # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = None +language = 'en' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files.