docs: Add link to PDF version of docs in sidebar.
Requires a link of the form: <BASEURL>/<lang>/<ver>/micropython-<port>.pdf
This commit is contained in:
parent
ee12581a35
commit
2bf6eb9fe2
|
@ -48,6 +48,9 @@ html_context = {
|
||||||
(ver, url_pattern % (ver, micropy_port))
|
(ver, url_pattern % (ver, micropy_port))
|
||||||
for ver in micropy_all_versions
|
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>
|
<dd><a href="{{ url }}">{{ slug }}</a></dd>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</dl>
|
</dl>
|
||||||
<!--
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Downloads</dt>
|
<dt>Downloads</dt>
|
||||||
{% for type, url in downloads %}
|
{% for type, url in downloads %}
|
||||||
<dd><a href="{{ url }}">{{ type }}</a></dd>
|
<dd><a href="{{ url }}">{{ type }}</a></dd>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</dl>
|
</dl>
|
||||||
-->
|
|
||||||
<hr/>
|
<hr/>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>External links</dt>
|
<dt>External links</dt>
|
||||||
|
|
Loading…
Reference in New Issue