breadcrumbs.html 1.3 KB

1234567891011121314151617181920212223
  1. <div role="navigation" aria-label="breadcrumbs navigation">
  2. <ul class="wy-breadcrumbs">
  3. <li><a href="{{ pathto(master_doc) }}">Docs</a> &raquo;</li>
  4. {% for doc in parents %}
  5. <li><a href="{{ doc.link|e }}">{{ doc.title }}</a> &raquo;</li>
  6. {% endfor %}
  7. <li>{{ title }}</li>
  8. <li class="wy-breadcrumbs-aside">
  9. {% if pagename != "search" %}
  10. {% if display_github %}
  11. <a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/blob/{{ github_version }}{{ conf_py_path }}{{ pagename }}{{ source_suffix }}" class="fa fa-github"> Edit on GitHub</a>
  12. {% elif display_bitbucket %}
  13. <a href="https://bitbucket.org/{{ bitbucket_user }}/{{ bitbucket_repo }}/src/{{ bitbucket_version}}{{ conf_py_path }}{{ pagename }}{{ source_suffix }}" class="fa fa-bitbucket"> Edit on Bitbucket</a>
  14. {% elif show_source and source_url_prefix %}
  15. <a href="{{ source_url_prefix }}{{ pagename }}{{ source_suffix }}">View page source</a>
  16. {% elif show_source and has_source and sourcename %}
  17. <a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow"> View page source</a>
  18. {% endif %}
  19. {% endif %}
  20. </li>
  21. </ul>
  22. <hr/>
  23. </div>