summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-11-05 15:05:05 +0100
committerGauvain Pocentek <gauvain@pocentek.net>2016-11-05 15:05:05 +0100
commit258aab45e5f9a2097de61f0927e9fa561b058185 (patch)
treea4f6a0c2201c3e5408e3dbdc9402547a4b137199 /docs
parent1833117f40e5cbdccde3e5f75dcabc1468e68b04 (diff)
downloadgitlab-258aab45e5f9a2097de61f0927e9fa561b058185.tar.gz
Add a 'report a bug' link on doc
Diffstat (limited to 'docs')
-rw-r--r--docs/_templates/breadcrumbs.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/_templates/breadcrumbs.html b/docs/_templates/breadcrumbs.html
new file mode 100644
index 0000000..35c1ed0
--- /dev/null
+++ b/docs/_templates/breadcrumbs.html
@@ -0,0 +1,24 @@
+{# Support for Sphinx 1.3+ page_source_suffix, but don't break old builds. #}
+
+{% if page_source_suffix %}
+{% set suffix = page_source_suffix %}
+{% else %}
+{% set suffix = source_suffix %}
+{% endif %}
+
+<div role="navigation" aria-label="breadcrumbs navigation">
+ <ul class="wy-breadcrumbs">
+ <li><a href="{{ pathto(master_doc) }}">Docs</a> &raquo;</li>
+ {% for doc in parents %}
+ <li><a href="{{ doc.link|e }}">{{ doc.title }}</a> &raquo;</li>
+ {% endfor %}
+ <li>{{ title }}</li>
+ <li class="wy-breadcrumbs-aside">
+ {% if pagename != "search" %}
+ <a href="https://github.com/gpocentek/python-gitlab/blob/{{ github_version }}{{ conf_py_path }}{{ pagename }}{{ suffix }}" class="fa fa-github"> Edit on GitHub</a>
+ | <a href="https://github.com/gpocentek/python-gitlab/issues/new?title=Documentation+bug&body=%0A%0A------%0AIn+page:+{{ pagename }}{{ suffix }}">Report a bug</a>
+ {% endif %}
+ </li>
+ </ul>
+ <hr/>
+</div>