Loading docs/_templates/sidebar/brand.html 0 → 100644 +22 −0 Original line number Diff line number Diff line <a class="sidebar-brand{% if logo %} centered{% endif %}" href="{{ pathto(master_doc) }}"> {% block brand_content %} {%- if logo %} <div class="sidebar-logo-container"> <img class="sidebar-logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/> </div> {%- endif %} {%- if theme_light_logo and theme_dark_logo %} <div class="sidebar-logo-container"> <img class="sidebar-logo only-light" src="{{ pathto('_static/' + theme_light_logo, 1) }}" alt="Light Logo"/> <img class="sidebar-logo only-dark" src="{{ pathto('_static/' + theme_dark_logo, 1) }}" alt="Dark Logo"/> </div> {%- endif %} {% if not theme_sidebar_hide_name %} <span class="sidebar-brand-text">{{ docstitle }}</span> {%- endif %} {% endblock brand_content %} </a> {%- if current_version -%} <div class="sidebar-brand">{{ current_version }}</div> {%- endif -%} docs/conf.py +10 −1 Original line number Diff line number Diff line html_theme = "furo" from datetime import datetime project = 'Bencode' author = 'Anton Smirnov' copyright = '{} {}'.format(datetime.now().year, author) language = 'en' html_title = project html_theme = 'furo' templates_path = ["_templates"] Loading
docs/_templates/sidebar/brand.html 0 → 100644 +22 −0 Original line number Diff line number Diff line <a class="sidebar-brand{% if logo %} centered{% endif %}" href="{{ pathto(master_doc) }}"> {% block brand_content %} {%- if logo %} <div class="sidebar-logo-container"> <img class="sidebar-logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/> </div> {%- endif %} {%- if theme_light_logo and theme_dark_logo %} <div class="sidebar-logo-container"> <img class="sidebar-logo only-light" src="{{ pathto('_static/' + theme_light_logo, 1) }}" alt="Light Logo"/> <img class="sidebar-logo only-dark" src="{{ pathto('_static/' + theme_dark_logo, 1) }}" alt="Dark Logo"/> </div> {%- endif %} {% if not theme_sidebar_hide_name %} <span class="sidebar-brand-text">{{ docstitle }}</span> {%- endif %} {% endblock brand_content %} </a> {%- if current_version -%} <div class="sidebar-brand">{{ current_version }}</div> {%- endif -%}
docs/conf.py +10 −1 Original line number Diff line number Diff line html_theme = "furo" from datetime import datetime project = 'Bencode' author = 'Anton Smirnov' copyright = '{} {}'.format(datetime.now().year, author) language = 'en' html_title = project html_theme = 'furo' templates_path = ["_templates"]