summaryrefslogtreecommitdiffstatshomepage
path: root/docs/templates
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-03-09 12:15:47 +0000
committerDamien George <damien.p.george@gmail.com>2016-03-09 12:15:47 +0000
commit5b74bba3a3e6be2a3bab1aa735d45120181dc0fd (patch)
tree8ff60d89c881ef97c0f93759e423ba3f976b3b13 /docs/templates
parent4b6077b3febca751eeace038b69074f262f1b221 (diff)
downloadmicropython-5b74bba3a3e6be2a3bab1aa735d45120181dc0fd.tar.gz
micropython-5b74bba3a3e6be2a3bab1aa735d45120181dc0fd.zip
docs: Add versions.html template and support code for a version sidebar.
Diffstat (limited to 'docs/templates')
-rw-r--r--docs/templates/versions.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/templates/versions.html b/docs/templates/versions.html
new file mode 100644
index 0000000000..977aefab11
--- /dev/null
+++ b/docs/templates/versions.html
@@ -0,0 +1,39 @@
+<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"> Ports and Versions</span>
+ {{ port_short_name }} ({{ port_version }})
+ <span class="fa fa-caret-down"></span>
+ </span>
+ <div class="rst-other-versions">
+ <dl>
+ <dt>Ports</dt>
+ {% for slug, url in all_ports %}
+ <dd><a href="{{ url }}">{{ slug }}</a></dd>
+ {% endfor %}
+ </dl>
+ <dl>
+ <dt>Versions</dt>
+ {% for slug, url in all_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>
+ -->
+ <hr/>
+ <dl>
+ <dt>External links</dt>
+ <dd>
+ <a href="http://www.micropython.org">micropython.org</a>
+ </dd>
+ <dd>
+ <a href="https://github.com/micropython/micropython">GitHub</a>
+ </dd>
+ </dl>
+ </div>
+</div>