Search page: don't show "edit on" links

This page is autogenerated, so it doesn't have "a real page".

Fixes https://github.com/readthedocs/sphinx_rtd_theme/issues/934
This commit is contained in:
Santos Gallegos 2020-06-01 14:02:08 -05:00
parent 48a9c21b67
commit bdd77df7bb
2 changed files with 5 additions and 2 deletions

View File

@ -24,6 +24,8 @@
{% set display_gitlab = True %}
{% endif %}
{% set display_vcs_links = display_vcs_links if display_vcs_links is defined else True %}
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
@ -36,8 +38,8 @@
{% endblock %}
{% block breadcrumbs_aside %}
<li class="wy-breadcrumbs-aside">
{% if hasdoc(pagename) %}
{% if display_github %}
{% if hasdoc(pagename) and display_vcs_links %}
{% if display_github %}
{% if check_meta and 'github_url' in meta %}
<!-- User defined GitHub URL -->
<a href="{{ meta['github_url'] }}" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>

View File

@ -9,6 +9,7 @@
#}
{%- extends "layout.html" %}
{% set title = _('Search') %}
{% set display_vcs_links = False %}
{%- block scripts %}
{{ super() }}
<script type="text/javascript" src="{{ pathto('_static/searchtools.js', 1) }}"></script>