diff --git a/doc/source/_templates/sidebar/brand.html b/doc/source/_templates/sidebar/brand.html new file mode 100644 index 00000000..c24d36f2 --- /dev/null +++ b/doc/source/_templates/sidebar/brand.html @@ -0,0 +1,22 @@ + + {%- block brand_content %} + {#- Remember to update the prefetch logic in `block logo_prefetch_links` in base.html #} + {%- if logo_url %} + + {%- endif %} + {%- if theme_light_logo and theme_dark_logo %} + + {%- endif %} + {% if not theme_sidebar_hide_name %} + + {%- endif %} + {% endblock brand_content %} + +{%- if READTHEDOCS %} +
+{%- endif %} diff --git a/doc/source/conf.py b/doc/source/conf.py index 1a32665f..a1a64b28 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -140,6 +140,9 @@ if os_rtd: 'light_logo': 'modules_red.svg', 'dark_logo': 'modules_white.svg', } + html_context = { + 'READTHEDOCS': True, + } # The name of an image file (relative to this directory) to place at the top # of the sidebar.