Skip to content

Commit 2bf6eb9

Browse files
committed
docs: Add link to PDF version of docs in sidebar.
Requires a link of the form: <BASEURL>/<lang>/<ver>/micropython-<port>.pdf
1 parent ee12581 commit 2bf6eb9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

docs/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
(ver, url_pattern % (ver, micropy_port))
4949
for ver in micropy_all_versions
5050
],
51+
'downloads':[
52+
('PDF', url_pattern % (micropy_version, 'micropython-%s.pdf' % micropy_port)),
53+
],
5154
}
5255

5356

docs/templates/versions.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@
1717
<dd><a href="{{ url }}">{{ slug }}</a></dd>
1818
{% endfor %}
1919
</dl>
20-
<!--
2120
<dl>
2221
<dt>Downloads</dt>
2322
{% for type, url in downloads %}
2423
<dd><a href="{{ url }}">{{ type }}</a></dd>
2524
{% endfor %}
2625
</dl>
27-
-->
2826
<hr/>
2927
<dl>
3028
<dt>External links</dt>

0 commit comments

Comments
 (0)