Skip to content

Commit

Permalink
Merge pull request #92 from mhmohona/sidebar-header
Browse files Browse the repository at this point in the history
Add Scribe-Data Logo into Docs Sidebar and Update Color Scheme
  • Loading branch information
andrewtavis authored Mar 9, 2024
2 parents 26d2a38 + 30969ec commit c09c74c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
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",
]

0 comments on commit c09c74c

Please sign in to comment.