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 1616 {%- set display_gitlab = True %}
1717{%- endif %}
1818
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 %}
2031
2132{#- Translators: This is an ARIA section label for page links, including previous/next page link and links to GitHub/GitLab/etc. -#}
2233< div role ="navigation " aria-label ="{{ _('Page navigation') }} ">
3041 {%- endblock %}
3142 {%- block breadcrumbs_aside %}
3243 < li class ="wy-breadcrumbs-aside ">
33- {%- if hasdoc(pagename) and display_vcs_links %}
44+ {%- if sourcelinks %}
3445 {%- if display_github %}
3546 {%- if check_meta and 'github_url' in meta %}
3647 <!-- User defined GitHub URL -->
Original file line number Diff line number Diff line change 99#}
1010{%- extends "layout.html" %}
1111{% set title = _('Search') %}
12- {% set display_vcs_links = False %}
1312{%- block scripts %}
1413 {{ super() }}
1514 < script src ="{{ pathto('_static/searchtools.js', 1) }} "> </ script >
You can’t perform that action at this time.
0 commit comments