Skip to content

Commit 5d1cf41

Browse files
committed
try to fix logo
1 parent 0b7ebad commit 5d1cf41

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/_themes/sphinx_rtd_theme/layout.html

+6-5
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,19 @@
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">
140+
141+
<img src="{{ logo_url }}" class="logo" alt="Logo">
141142
{%- endif %}
142143

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

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
html_theme_path = ['_themes']
114114

115115
html_theme = 'sphinx_rtd_theme'
116-
html_logo = "_images/logo.png"
116+
html_logo = "https://raw.githubusercontent.com/aerostack2/aerostack2.github.io/main/docs/_images/logo.png"
117117
# Add any paths that contain custom static files (such as style sheets) here,
118118
# relative to this directory. They are copied after the builtin static files,
119119
# so a file named "default.css" will overwrite the builtin "default.css".

0 commit comments

Comments
 (0)