File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 16
16
{%- set display_gitlab = True %}
17
17
{%- endif %}
18
18
19
- {%- set display_vcs_links = display_vcs_links if display_vcs_links is defined else True %}
19
+ {%- set sourcelinks = True %}
20
+ {%- if html_show_sourcelink is false %}
21
+ {#- https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_show_sourcelink -#}
22
+ {%- set sourcelinks = False %}
23
+ {%- elif hasdoc(pagename} is false %}
24
+ {#- disable for autogenerated pages -#}
25
+ {%- set sourcelinks = False %}
26
+ {%- elif pagename == 'search' %}
27
+ {#- explicitly disable for search page -#}
28
+ {#- https://github.com/readthedocs/sphinx_rtd_theme/issues/934 -#}
29
+ {%- set sourcelinks = False %}
30
+ {%- endif %}
20
31
21
32
{#- Translators: This is an ARIA section label for page links, including previous/next page link and links to GitHub/GitLab/etc. -#}
22
33
< div role ="navigation " aria-label ="{{ _('Page navigation') }} ">
30
41
{%- endblock %}
31
42
{%- block breadcrumbs_aside %}
32
43
< li class ="wy-breadcrumbs-aside ">
33
- {%- if hasdoc(pagename) and display_vcs_links %}
44
+ {%- if sourcelinks %}
34
45
{%- if display_github %}
35
46
{%- if check_meta and 'github_url' in meta %}
36
47
<!-- User defined GitHub URL -->
Original file line number Diff line number Diff line change 9
9
#}
10
10
{%- extends "layout.html" %}
11
11
{% set title = _('Search') %}
12
- {% set display_vcs_links = False %}
13
12
{%- block scripts %}
14
13
{{ super() }}
15
14
< script src ="{{ pathto('_static/searchtools.js', 1) }} "> </ script >
You can’t perform that action at this time.
0 commit comments