Skip to content

Commit d27a242

Browse files
committed
📝 docs: enlarge sidebar logo to full width
Match the virtualenv docs style: hide the text project name and expand the SVG logo to fill the sidebar width via custom CSS.
1 parent daf5c00 commit d27a242

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎docs/_static/custom.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.sidebar-logo img {
2+
max-width: 100%;
3+
width: 100%;
4+
}

‎docs/conf.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@
4141
html_theme_options = {
4242
"light_logo": "logo.svg",
4343
"dark_logo": "logo.svg",
44+
"sidebar_hide_name": True,
4445
}
46+
html_css_files = ["custom.css"]

0 commit comments

Comments
 (0)