Skip to content

Commit 84134e0

Browse files
Use html_logo sphinx option to insert logo
1 parent ffdb150 commit 84134e0

File tree

4 files changed

+4
-882
lines changed

4 files changed

+4
-882
lines changed

pandas-docs/source/_static/pandas.png

14.7 KB
Loading

pandas-docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def run(self):
387387

388388
# The name of an image file (relative to this directory) to place at the top
389389
# of the sidebar.
390-
# html_logo = None
390+
html_logo = '_static/pandas.png'
391391

392392
# Add any paths that contain custom static files (such as style sheets) here,
393393
# relative to this directory. They are copied after the builtin static files,

pandas_sphinx_theme/docs-navbar.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11

2+
{% if logo %}
23
<a class="navbar-brand" href="{{ pathto('index') }}">
3-
<img src="{{ pathto('_static/img/pandas_logo.svg', 1) }}" alt="Pandas">
4+
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="logo">
45
</a>
5-
6+
{% endif %}
67
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false" aria-label="Toggle navigation">
78
<span class="navbar-toggler-icon"></span>
89
</button>

0 commit comments

Comments
 (0)