diff options
| author | Simon Hausmann <hausmann@gmail.com> | 2021-06-28 11:27:06 +0200 |
|---|---|---|
| committer | Simon Hausmann <hausmann@gmail.com> | 2021-06-28 11:27:06 +0200 |
| commit | 9f04ac8563f678744c8db628acccabb65abcdb4a (patch) | |
| tree | a322e43ed11c2b8ddd20179d97c8ff3b64ccc242 /sphinx/builders | |
| parent | 6cb649fc75062cd6f5df4a722030079c3a29aaf1 (diff) | |
| download | sphinx-git-9f04ac8563f678744c8db628acccabb65abcdb4a.tar.gz | |
Simplify logo and favicon assignment
Diffstat (limited to 'sphinx/builders')
| -rw-r--r-- | sphinx/builders/html/__init__.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sphinx/builders/html/__init__.py b/sphinx/builders/html/__init__.py index 41e61c692..ad8436c93 100644 --- a/sphinx/builders/html/__init__.py +++ b/sphinx/builders/html/__init__.py @@ -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: |
