Skip to content

Commit

Permalink
Update Sphinx usage of favicon to favicon_url
Browse files Browse the repository at this point in the history
  • Loading branch information
Th0masCat authored and lb- committed Jan 26, 2024
1 parent 841c0cf commit 0e9f3ab
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ All notable changes to this project will be documented in this file.

### Fixed

- ...
- Update `favicon` usage to be the new Sphinx variable `favicon_url` & add default favicon (Sahil Jangra)

### Security

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Mohammad Areeb
- Andy Chosak
- Temidayo Azeez
- Sahil Jangra

## Sphinx Typo3 theme

Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
# -- Options for HTML output -------------------------------------------
html_theme = 'sphinx_wagtail_theme'
html_static_path = []
html_favicon = 'favicon.ico'
# -- Options for HTMLHelp output ---------------------------------------
htmlhelp_basename = 'sphinx_wagtail_themedoc'
# -- Options for LaTeX output ------------------------------------------
Expand Down
Binary file added docs/favicon.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions sphinx_wagtail_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
{% block htmltitle %}
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
{% endblock %}
{%- if favicon %}
<link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}" />
{%- if favicon_url %}
<link rel="shortcut icon" href="{{ pathto(favicon_url, 1) }}" />
{%- endif %}

{#- Include our own stylesheets -#}
Expand Down

0 comments on commit 0e9f3ab

Please sign in to comment.