summaryrefslogtreecommitdiffstats
path: root/common/sphinx_rtd_theme_rtems/versions.html
diff options
context:
space:
mode:
authorAmar Takhar <amar@rtems.org>2016-01-19 20:37:04 -0500
committerAmar Takhar <verm@darkbeer.org>2016-05-02 20:51:25 -0400
commita316b1ff6d765fe0d3631282e750c94470612e97 (patch)
tree577d0a4cd9659c9834d39eb944a9d662d4f6f2dd /common/sphinx_rtd_theme_rtems/versions.html
parentFix typo and add another dependency. (diff)
downloadrtems-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/versions.html')
-rw-r--r--common/sphinx_rtd_theme_rtems/versions.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/common/sphinx_rtd_theme_rtems/versions.html b/common/sphinx_rtd_theme_rtems/versions.html
new file mode 100644
index 0000000..8b3eb79
--- /dev/null
+++ b/common/sphinx_rtd_theme_rtems/versions.html
@@ -0,0 +1,37 @@
+{% if READTHEDOCS %}
+{# Add rst-badge after rst-versions for small badge style. #}
+ <div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
+ <span class="rst-current-version" data-toggle="rst-current-version">
+ <span class="fa fa-book"> Read the Docs</span>
+ v: {{ current_version }}
+ <span class="fa fa-caret-down"></span>
+ </span>
+ <div class="rst-other-versions">
+ <dl>
+ <dt>Versions</dt>
+ {% for slug, url in versions %}
+ <dd><a href="{{ url }}">{{ slug }}</a></dd>
+ {% endfor %}
+ </dl>
+ <dl>
+ <dt>Downloads</dt>
+ {% for type, url in downloads %}
+ <dd><a href="{{ url }}">{{ type }}</a></dd>
+ {% endfor %}
+ </dl>
+ <dl>
+ <dt>On Read the Docs</dt>
+ <dd>
+ <a href="//{{ PRODUCTION_DOMAIN }}/projects/{{ slug }}/?fromdocs={{ slug }}">Project Home</a>
+ </dd>
+ <dd>
+ <a href="//{{ PRODUCTION_DOMAIN }}/builds/{{ slug }}/?fromdocs={{ slug }}">Builds</a>
+ </dd>
+ </dl>
+ <hr/>
+ Free document hosting provided by <a href="http://www.readthedocs.org">Read the Docs</a>.
+
+ </div>
+ </div>
+{% endif %}
+