Skip to content

Commit

Permalink
try to fix logo
Browse files Browse the repository at this point in the history
  • Loading branch information
javilinos committed Apr 18, 2024
1 parent 81e946b commit 0b7ebad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
5 changes: 3 additions & 2 deletions docs/_themes/sphinx_rtd_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,17 @@
<a href="{{ pathto(master_doc) }}">
{%- else %}
<a href="{{ pathto(master_doc) }}" class="icon icon-home"> {{ project }}
<img src="_static/logo.png" class="logo" alt="Logo">
{%- endif %}

{%- if logo %}
{#- Not strictly valid HTML, but it's the only way to display/scale
it properly, without weird scripting or heaps of work
#}
{%- if sphinx_version_info < (4, 0) -%}
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="{{ _('Logo') }}"/>
<!-- <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="{{ _('Logo') }}"/> -->
{%- else %}
<img src="{{ logo_url }}" class="logo" alt="{{ _('Logo') }}"/>
<!-- <img src="{{ logo_url }}" class="logo" alt="{{ _('Logo') }}"/> -->
{%- endif %}
{%- endif %}
</a>
Expand Down
1 change: 0 additions & 1 deletion docs/_themes/sphinx_rtd_theme/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ sticky_navigation = True
navigation_depth = 4
includehidden = True
titles_only =
logo = _images/logo.png
logo_only = False
display_version = True
prev_next_buttons_location = bottom
Expand Down
2 changes: 0 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
'canonical_url': '',
'analytics_id': '',
'logo_only': False,
'logo': "_images/logo.png",
'display_version': True,
'prev_next_buttons_location': 'None',
'style_nav_header_background': 'blue',
Expand All @@ -115,7 +114,6 @@

html_theme = 'sphinx_rtd_theme'
html_logo = "_images/logo.png"
logo = "_images/logo.png"
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
Expand Down

0 comments on commit 0b7ebad

Please sign in to comment.