Skip to content
Snippets Groups Projects
Commit 2bf6eb9f authored by Damien George's avatar Damien George
Browse files

docs: Add link to PDF version of docs in sidebar.

Requires a link of the form: <BASEURL>/<lang>/<ver>/micropython-<port>.pdf
parent ee12581a
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,9 @@ html_context = {
(ver, url_pattern % (ver, micropy_port))
for ver in micropy_all_versions
],
'downloads':[
('PDF', url_pattern % (micropy_version, 'micropython-%s.pdf' % micropy_port)),
],
}
......
......@@ -17,14 +17,12 @@
<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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment