Skip to content

Commit 0b7ebad

Browse files
committed
try to fix logo
1 parent 81e946b commit 0b7ebad

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

docs/_themes/sphinx_rtd_theme/layout.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,17 @@
137137
<a href="{{ pathto(master_doc) }}">
138138
{%- else %}
139139
<a href="{{ pathto(master_doc) }}" class="icon icon-home"> {{ project }}
140+
<img src="_static/logo.png" class="logo" alt="Logo">
140141
{%- endif %}
141142

142143
{%- if logo %}
143144
{#- Not strictly valid HTML, but it's the only way to display/scale
144145
it properly, without weird scripting or heaps of work
145146
#}
146147
{%- if sphinx_version_info < (4, 0) -%}
147-
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="{{ _('Logo') }}"/>
148+
<!-- <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="{{ _('Logo') }}"/> -->
148149
{%- else %}
149-
<img src="{{ logo_url }}" class="logo" alt="{{ _('Logo') }}"/>
150+
<!-- <img src="{{ logo_url }}" class="logo" alt="{{ _('Logo') }}"/> -->
150151
{%- endif %}
151152
{%- endif %}
152153
</a>

docs/_themes/sphinx_rtd_theme/theme.conf

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ sticky_navigation = True
1212
navigation_depth = 4
1313
includehidden = True
1414
titles_only =
15-
logo = _images/logo.png
1615
logo_only = False
1716
display_version = True
1817
prev_next_buttons_location = bottom

docs/conf.py

-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@
101101
'canonical_url': '',
102102
'analytics_id': '',
103103
'logo_only': False,
104-
'logo': "_images/logo.png",
105104
'display_version': True,
106105
'prev_next_buttons_location': 'None',
107106
'style_nav_header_background': 'blue',
@@ -115,7 +114,6 @@
115114

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

0 commit comments

Comments
 (0)