From 60557715d20e9839195d36b43a1fe70484f1bca9 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Thu, 31 Dec 2020 18:45:00 +0900 Subject: [PATCH] Fix #8629: html: A type warning for html_use_opensearch is shown twice --- CHANGES | 1 + sphinx/builders/html/__init__.py | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index c44051f3f..33ab37fb3 100644 --- a/CHANGES +++ b/CHANGES @@ -32,6 +32,7 @@ Bugs fixed :recursive: option * #8618: html: kbd role produces incorrect HTML when compound-key separators (-, + or ^) are used as keystrokes +* #8629: html: A type warning for html_use_opensearch is shown twice * #8094: texinfo: image files on the different directory with document are not copied diff --git a/sphinx/builders/html/__init__.py b/sphinx/builders/html/__init__.py index 641d0eda2..ba78f2d7e 100644 --- a/sphinx/builders/html/__init__.py +++ b/sphinx/builders/html/__init__.py @@ -448,9 +448,6 @@ class StandaloneHTMLBuilder(Builder): logo = path.basename(self.config.html_logo) if self.config.html_logo else '' favicon = path.basename(self.config.html_favicon) if self.config.html_favicon else '' - if not isinstance(self.config.html_use_opensearch, str): - logger.warning(__('html_use_opensearch config value must now be a string')) - self.relations = self.env.collect_relations() rellinks = [] # type: List[Tuple[str, str, str, str]]