Skip to content

Commit

Permalink
using sphinx-favicon (no req pypi yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
douden committed Dec 10, 2024
1 parent 5b2aa20 commit 07b0637
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sphinx_tudelft_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ def set_favicon(app,conf):
if conf.tud_change_favicon:
print('Changing favicon to TU Delft favicon')
old = app.config
# old['html_favicon'] = '_static/TUD_favicon.svg'
old['favicons'] = {"rel": "icon", "href": "TUD_favicon.svg", "type": "image/svg+xml"}
app.config = old
else:
print('Using user-defined favicon')

def setup(app: Sphinx):
app.setup_extension('sphinx_favicon')
app.add_config_value('tud_change_logo', True, 'env')
app.add_config_value('tud_change_favicon', True, 'env')
app.add_css_file('tudelft_style.css')
Expand Down

0 comments on commit 07b0637

Please sign in to comment.