Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Scribe-Data Logo into Docs Sidebar and Update Color Scheme #92

Merged
merged 3 commits into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/source/_static/ScribeDataLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* Change the sidebar header color to match the new logo background. */
.wy-side-nav-search {
background-color: #f0f0eb !important;
}

/* Update the sidebar background color. */
.wy-nav-side {
background-color: #f2f5f8 !important;
}

/* Change sidebar text color to black for all sidebar items. */
.wy-nav-side .wy-nav-content,
.wy-nav-side .wy-menu-vertical a {
color: #000 !important;
}

/* Sidebar link text color on hover. */
.wy-nav-side .wy-nav-content a:hover,
.wy-nav-side .wy-menu-vertical a:hover {
color: #fff !important;
}

/* Logo styling. */
.wy-side-nav-search .wy-nav-top img {
padding: 15px;
max-height: 80px;
max-width: 100%;
display: block;
margin: 0 auto;
}
12 changes: 12 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,15 @@
"Miscellaneous",
)
]

# Adding logo to the docs sidebar.
html_logo = "_static/ScribeDataLogo.png"
html_theme_options = {
"logo_only": True,
"display_version": False,
}

# Importing custom css for theme customization.
html_css_files = [
"custom.css",
]
Loading