add your logo to the sidebar

This commit is contained in:
CaCO3
2023-01-05 01:00:49 +01:00
parent 894846b12d
commit 71323c8e14
5 changed files with 764 additions and 15 deletions

15
readthedocs-mod/main.html Normal file
View File

@@ -0,0 +1,15 @@
{% extends "base.html" %}
{%- block site_name %}
<!-- Add our logo -->
<img src=https://jomjol.github.io/AI-on-the-edge-device-docs/img/logo.png> <!-- needs to be an absolute page since the index page handles it differently :( )-->
{%- if config.theme.logo %}
<a href="{{ nav.homepage.url|url }}">
{%- else %}
<a href="{{ nav.homepage.url|url }}" class="icon icon-home"> {{ config.site_name }}
{%- endif %}
{%- if config.theme.logo %}
<img src="{{ config.theme.logo|url }}" class="logo" alt="{% trans %}Logo{% endtrans %}"/>
{%- endif %}
</a>
{%- endblock %}