Skip to content

Commit

Permalink
[1.26.x] Add alternate 'dark mode' banner to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin authored and sethmlarson committed Jun 20, 2021
1 parent 782f05a commit ad90640
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
File renamed without changes
1 change: 1 addition & 0 deletions docs/_static/dark-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def __getattr__(cls, name):
# a list of builtin themes.
html_theme = "furo"
html_favicon = "images/favicon.png"
html_logo = "images/banner.svg"

html_static_path = ["_static"]
html_theme_options = {
"announcement": """
<a style=\"text-decoration: none; color: white;\"
Expand All @@ -83,6 +83,8 @@ def __getattr__(cls, name):
</a>
""",
"sidebar_hide_name": True,
"light_logo": "banner.svg",
"dark_logo": "dark-logo.svg",
}

intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}

0 comments on commit ad90640

Please sign in to comment.