Skip to content

Commit 68adbc7

Browse files
committed
bugfix in MDL_theme for newer Sphinx versions (see sphinx-doc/sphinx#11062)
1 parent f79cd51 commit 68adbc7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

mainsite_hidden/source/MDL_theme/drawer.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
{%- if logo %}
77
<img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="{{ project }}"/>
88
{%- else %}
9-
{{ project }}
9+
{%- if logo_url %}
10+
<img class="logo" src="{{ pathto(logo_url, 1) }}" alt="{{ project }}"/>
11+
{%- else %}
12+
{{ project }} {{logo_url}}
13+
{%- endif %}
1014
{%- endif %}
1115
</a>
1216
</span>

mainsite_hidden/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129

130130
# The theme to use for HTML and HTML Help pages. See the documentation for
131131
# a list of builtin themes.
132-
html_theme = MDL_theme" #'sphinxdoc' #'pyramid' #default'
132+
html_theme = "MDL_theme" #'sphinxdoc' #'pyramid' #default'
133133

134134
# Theme options are theme-specific and customize the look and feel of a theme
135135
# further. For a list of options available for each theme, see the
@@ -149,6 +149,7 @@
149149
# The name of an image file (relative to this directory) to place at the top
150150
# of the sidebar.
151151
html_logo = "_static\\itomlogo.png"
152+
logo = html_logo
152153

153154
# The name of an image file (within the static path) to use as favicon of the
154155
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32

0 commit comments

Comments
 (0)