diff options
author | Amar Takhar <amar@rtems.org> | 2016-01-19 20:37:04 -0500 |
---|---|---|
committer | Amar Takhar <verm@darkbeer.org> | 2016-05-02 20:51:25 -0400 |
commit | a316b1ff6d765fe0d3631282e750c94470612e97 (patch) | |
tree | 577d0a4cd9659c9834d39eb944a9d662d4f6f2dd /common/sphinx_rtd_theme_rtems/breadcrumbs.html | |
parent | Fix typo and add another dependency. (diff) | |
download | rtems-docs-a316b1ff6d765fe0d3631282e750c94470612e97.tar.bz2 |
Add support for singlehtml (inlined) HTML file, plus some other fixes.
* This is still broken.
* Rename sphinx_rtd_theme so it doesn't pickup locally installed ones
* Add a hack to theme.css to get around inliner bug.
* Some unrelated fixups in common/waf.py
Unfortunatly several dozen fixes got merged into this.
Diffstat (limited to 'common/sphinx_rtd_theme_rtems/breadcrumbs.html')
-rw-r--r-- | common/sphinx_rtd_theme_rtems/breadcrumbs.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/common/sphinx_rtd_theme_rtems/breadcrumbs.html b/common/sphinx_rtd_theme_rtems/breadcrumbs.html new file mode 100644 index 0000000..7c2ce5c --- /dev/null +++ b/common/sphinx_rtd_theme_rtems/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> |