Skip to content

Commit 20d31dd

Browse files
committed
Qluster icon should go to getqluster.com
1 parent ee80976 commit 20d31dd

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

docs/_static/custom.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ h1, h2, h3, h4, h5, h6 {
44
font-weight: normal;
55
}
66

7+
/* Sidebar brand: logo links externally, text links to docs root */
8+
.sidebar-brand {
9+
display: flex;
10+
flex-direction: column;
11+
align-items: center;
12+
padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal);
13+
}
14+
.sidebar-brand-text {
15+
overflow-wrap: anywhere;
16+
text-decoration: none;
17+
color: var(--color-sidebar-brand-text, var(--color-foreground-primary));
18+
font-size: 1.5rem;
19+
}
20+
721
/* Sidebar active/current item */
822
.sidebar-tree .current-page > .reference {
923
color: #195190;

docs/_templates/sidebar/brand.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{# Override Furo's sidebar brand so the logo links to getqluster.com #}
2+
<div class="sidebar-brand{% if logo %} centered{% endif %}">
3+
{%- if logo_url %}
4+
<a href="https://getqluster.com">
5+
<div class="sidebar-logo-container">
6+
<img class="sidebar-logo" src="{{ logo_url }}" alt="Logo"/>
7+
</div>
8+
</a>
9+
{%- endif %}
10+
{%- if theme_light_logo and theme_dark_logo %}
11+
<a href="https://getqluster.com">
12+
<div class="sidebar-logo-container">
13+
<img class="sidebar-logo only-light" src="{{ pathto('_static/' + theme_light_logo, 1) }}" alt="Light Logo"/>
14+
<img class="sidebar-logo only-dark" src="{{ pathto('_static/' + theme_dark_logo, 1) }}" alt="Dark Logo"/>
15+
</div>
16+
</a>
17+
{%- endif %}
18+
{% if not theme_sidebar_hide_name %}
19+
<a class="sidebar-brand-text" href="{{ pathto(master_doc) }}">{{ docstitle if docstitle else project }}</a>
20+
{%- endif %}
21+
</div>

0 commit comments

Comments
 (0)