Skip to content

Commit

Permalink
Clickable logo for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed May 25, 2024
1 parent 4fd16a1 commit ccac350
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/_templates/sidebar/brand.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="sidebar-brand{% if logo %} centered{% endif %}">
<a class="sidebar-brand{% if logo %} centered{% endif %}" href="{{ pathto(master_doc) }}">
{% block brand_content %} {%- if logo_url %}
<div class="sidebar-logo-container">
<a href="{{ pathto(master_doc) }}"><img class="sidebar-logo" src="{{ logo_url }}" alt="Logo" /></a>
Expand All @@ -12,7 +12,7 @@
<!-- <span class="sidebar-brand-text">{{ project }}</span> -->

{% endblock brand_content %}
</div>
</a>

<!-- Dropdown for different versions of the viser docs. Slightly hacky. -->
<div style="padding: 0 1em;">
Expand Down

0 comments on commit ccac350

Please sign in to comment.