breadcrumbs.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {% extends '!breadcrumbs.html' %}
  2. {% block 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. {% endblock %}
  9. {% block breadcrumbs_aside %}
  10. <li class="wy-breadcrumbs-aside">
  11. {% if hasdoc(pagename) %}
  12. {% if display_github %}
  13. {% if check_meta and 'github_url' in meta %}
  14. <!-- User defined GitHub URL -->
  15. <a href="{{ meta['github_url'] }}" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
  16. {% else %}
  17. <a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/{{ theme_vcs_pageview_mode or "blob" }}/{{ github_version | replace("origin/", "") }}{{ conf_py_path }}{{ pagename }}{{ page_source_suffix }}" class="fa fa-github"> {{ _('Edit on GitHub') }}</a>
  18. {% endif %}
  19. {% elif display_bitbucket %}
  20. {% if check_meta and 'bitbucket_url' in meta %}
  21. <!-- User defined Bitbucket URL -->
  22. <a href="{{ meta['bitbucket_url'] }}" class="fa fa-bitbucket"> {{ _('Edit on Bitbucket') }}</a>
  23. {% else %}
  24. <a href="https://bitbucket.org/{{ bitbucket_user }}/{{ bitbucket_repo }}/src/{{ bitbucket_version}}{{ conf_py_path }}{{ pagename }}{{ page_source_suffix }}?mode={{ theme_vcs_pageview_mode or "view" }}" class="fa fa-bitbucket"> {{ _('Edit on Bitbucket') }}</a>
  25. {% endif %}
  26. {% elif display_gitlab %}
  27. {% if check_meta and 'gitlab_url' in meta %}
  28. <!-- User defined GitLab URL -->
  29. <a href="{{ meta['gitlab_url'] }}" class="fa fa-gitlab"> {{ _('Edit on GitLab') }}</a>
  30. {% else %}
  31. <a href="https://{{ gitlab_host|default("gitlab.com") }}/{{ gitlab_user }}/{{ gitlab_repo }}/{{ theme_vcs_pageview_mode or "blob" }}/{{ gitlab_version }}{{ conf_py_path }}{{ pagename }}{{ page_source_suffix }}" class="fa fa-gitlab"> {{ _('Edit on GitLab') }}</a>
  32. {% endif %}
  33. {% elif show_source and source_url_prefix %}
  34. <a href="{{ source_url_prefix }}{{ pagename }}{{ page_source_suffix }}">{{ _('View page source') }}</a>
  35. {% elif show_source and has_source and sourcename %}
  36. <a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow"> {{ _('View page source') }}</a>
  37. {% endif %}
  38. {% endif %}
  39. </li>
  40. <li class="wy-breadcrumbs-aside">
  41. <a href="https://jupyter.org/documentation">
  42. <img src="{{ pathto('_static/jupyter_logo.svg', 1) }}"></img>
  43. {{ _('Jupyter') }}
  44. </a>
  45. &vert;
  46. &nbsp;
  47. </li>
  48. {% endblock %}