Do not show the 'Improve this page' button on the search page
<a href="https://github.com/{{ github_repo }}/edit/{{ github_version }}/{{ doc_path }}/{{ example_script }}"
class="fa fa-github"> Improve this page</a>
{% endif %}
- {% elif pagename.split("/")[-1] != "genindex" %}
+ {% elif pagename.split("/")[-1] not in ["genindex", "search"] %}
<a href="https://github.com/{{ github_repo }}/edit/{{ github_version }}/{{ doc_path }}/{{ pagename }}{{ page_source_suffix }}"
class="fa fa-github"> Improve this page</a>
{% endif %}
