diff options
author | Amar Takhar <amar@rtems.org> | 2016-01-15 23:41:06 -0500 |
---|---|---|
committer | Amar Takhar <verm@darkbeer.org> | 2016-05-02 20:51:07 -0400 |
commit | 5daabd23cfd13662e74ce8d069204882eb1fbad9 (patch) | |
tree | f4146d003923a3de5cf5071b76721b7883123364 /common/sphinx_rtd_theme/breadcrumbs.html | |
download | rtems-docs-5daabd23cfd13662e74ce8d069204882eb1fbad9.tar.bz2 |
Initial reST documentation using Sphinx.
Diffstat (limited to 'common/sphinx_rtd_theme/breadcrumbs.html')
-rw-r--r-- | common/sphinx_rtd_theme/breadcrumbs.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/common/sphinx_rtd_theme/breadcrumbs.html b/common/sphinx_rtd_theme/breadcrumbs.html new file mode 100644 index 0000000..7c2ce5c --- /dev/null +++ b/common/sphinx_rtd_theme/breadcrumbs.html @@ -0,0 +1,31 @@ +{# 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> »</li> + {% for doc in parents %} + <li><a href="{{ doc.link|e }}">{{ doc.title }}</a> »</li> + {% endfor %} + <li>{{ title }}</li> + <li class="wy-breadcrumbs-aside"> + {% if pagename != "search" %} + {% if display_github %} + <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> + {% elif display_bitbucket %} + <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> + {% elif show_source and source_url_prefix %} + <a href="{{ source_url_prefix }}{{ pagename }}{{ suffix }}">View page source</a> + {% elif show_source and has_source and sourcename %} + <a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow"> View page source</a> + {% endif %} + {% endif %} + </li> + </ul> + <hr/> +</div> |