summaryrefslogtreecommitdiff
path: root/doc/source/_templates/layout.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/_templates/layout.html')
-rw-r--r--doc/source/_templates/layout.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/source/_templates/layout.html b/doc/source/_templates/layout.html
index 5338fc6f6..27798878e 100644
--- a/doc/source/_templates/layout.html
+++ b/doc/source/_templates/layout.html
@@ -2,3 +2,16 @@
{% block rootrellink %}
<li><a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}</li>
{% endblock %}
+
+{% block sidebarsearch %}
+{%- if sourcename %}
+<ul class="this-page-menu">
+{%- if 'reference/generated' in sourcename %}
+ <li><a href="/numpy/docs/{{ sourcename.replace('reference/generated/', '').replace('.txt', '') |e }}">{{_('Edit page')}}</a></li>
+{%- else %}
+ <li><a href="/numpy/docs/numpy-docs/{{ sourcename.replace('.txt', '.rst') |e }}">{{_('Edit page')}}</a></li>
+{%- endif %}
+</ul>
+{%- endif %}
+{{ super() }}
+{% endblock %}