breadcrumbs.html 1.4 KB

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