Skip to content

Links in extended menu layout get unneeded button with sphinx_rtd_theme v1 #1278

Open
@MuellerSeb

Description

@MuellerSeb

Problem

We have been using this theme since years and I just saw, that you finally released a v1 and we wanted to try it. Unfortunately we have added links to the menu by modifying _templates/layout.html in the following way:

{% extends "!layout.html" %}
  {% block menu %}
    <p class="link caption"><span class="link caption-text">Documentation</span></p>
    {{ super() }}
    <br />
    <p class="link caption"><span class="link caption-text">Links</span></p>
    <a href="https://github.com">GitHub</a>
  {% endblock %}

This was totally fine with v0.5 but with v1 all links get a button with no function added to the text:

<a href="https://github.com"><button class="toctree-expand" title="Open/close menu"></button>GitHub</a>

Is there a way to reproduce the old behavior?

Reproducible Project

https://github.com/GeoStat-Framework/GSTools

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions