ba370b178d
This is something I always wanted, a 'Edit on GitHub' button for module documentation. I also removed the additional statement in the footer with instructions on how to edit the module documentation. PS The links go directly into the GitHub file editor now !
15 lines
665 B
HTML
15 lines
665 B
HTML
<ul class="wy-breadcrumbs">
|
|
<li><a href="{{ pathto(master_doc) }}">Docs</a> »</li>
|
|
<li><a href="">{{ title }}</a></li>
|
|
{% if pagename.endswith('_module') %}
|
|
<li class="wy-breadcrumbs-aside">
|
|
<a href="https://github.com/ansible/ansible/edit/devel/lib/ansible/modules/{{ meta.get('source', '') }}" class="icon icon-github"> Edit on GitHub</a>
|
|
</li>
|
|
{% elif (not 'list_of' in pagename) and (not 'category' in pagename) %}
|
|
<li class="wy-breadcrumbs-aside">
|
|
<a href="https://github.com/ansible/ansible/edit/devel/docs/docsite/rst/{{ pagename }}.rst" class="icon icon-github"> Edit on GitHub</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
<hr/>
|
|
|