Skip to content

Commit b1641bd

Browse files
committed
Move logo files to _static folder
1 parent c3de4a0 commit b1641bd

File tree

5 files changed

+16
-17
lines changed

5 files changed

+16
-17
lines changed

docs/conf.py

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,21 @@
231231

232232
# -- Options for HTML output -------------------------------------------------
233233

234+
# Logo
235+
html_logo = os.path.join('_static', 'logo_square.png')
236+
237+
# The theme to use for HTML and HTML Help pages. See the documentation for
238+
# a list of builtin themes.
239+
# Use modified RTD theme with overrides in custom.css and custom.js
240+
html_theme = 'sphinx_rtd_light_dark'
241+
html_theme_options = {
242+
'logo_only': True,
243+
'display_version': False,
244+
'collapse_navigation': True,
245+
'navigation_depth': 4,
246+
'prev_next_buttons_location': 'bottom', # top and bottom
247+
}
248+
234249
# Add any paths that contain custom static files (such as style sheets) here,
235250
# relative to this directory. They are copied after the builtin static files,
236251
# so a file named "default.css" will overwrite the builtin "default.css".
@@ -248,23 +263,7 @@
248263
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
249264
# pixels large. Static folder is for CSS and image files. Use ImageMagick to
250265
# convert png to ico on command line with 'convert image.png image.ico'
251-
html_favicon = 'logo_blank.ico'
252-
253-
# Logo
254-
html_logo = 'logo_square.png'
255-
256-
# The theme to use for HTML and HTML Help pages. See the documentation for
257-
# a list of builtin themes.
258-
# Use modified RTD theme with overrides in custom.css and custom.js
259-
html_theme = 'sphinx_rtd_light_dark'
260-
html_theme_options = {
261-
'logo_only': True,
262-
'display_version': False,
263-
'collapse_navigation': True,
264-
'navigation_depth': 4,
265-
'prev_next_buttons_location': 'bottom', # top and bottom
266-
}
267-
266+
html_favicon = os.path.join('_static', 'logo_blank.ico')
268267

269268
# -- Options for HTMLHelp output ---------------------------------------------
270269

0 commit comments

Comments
 (0)