mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Simplify logo and favicon assignment
This commit is contained in:
@@ -468,9 +468,6 @@ class StandaloneHTMLBuilder(Builder):
|
||||
else:
|
||||
self.last_updated = None
|
||||
|
||||
logo = self.config.html_logo if self.config.html_logo else ''
|
||||
favicon = self.config.html_favicon if self.config.html_favicon else ''
|
||||
|
||||
self.relations = self.env.collect_relations()
|
||||
|
||||
rellinks: List[Tuple[str, str, str, str]] = []
|
||||
@@ -513,8 +510,8 @@ class StandaloneHTMLBuilder(Builder):
|
||||
'rellinks': rellinks,
|
||||
'builder': self.name,
|
||||
'parents': [],
|
||||
'logo': logo,
|
||||
'favicon': favicon,
|
||||
'logo': self.config.html_logo or '',
|
||||
'favicon': self.config.html_favicon or '',
|
||||
'html5_doctype': html5_ready and not self.config.html4_writer,
|
||||
}
|
||||
if self.theme:
|
||||
|
||||
Reference in New Issue
Block a user