Skip to content

Commit

Permalink
docs: Add link to PDF version of docs in sidebar.
Browse files Browse the repository at this point in the history
Requires a link of the form: <BASEURL>/<lang>/<ver>/micropython-<port>.pdf
  • Loading branch information
dpgeorge committed Jun 6, 2016
1 parent ee12581 commit 2bf6eb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/conf.py
Expand Up @@ -48,6 +48,9 @@
(ver, url_pattern % (ver, micropy_port))
for ver in micropy_all_versions
],
'downloads':[
('PDF', url_pattern % (micropy_version, 'micropython-%s.pdf' % micropy_port)),
],
}


Expand Down
2 changes: 0 additions & 2 deletions docs/templates/versions.html
Expand Up @@ -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>
Expand Down

0 comments on commit 2bf6eb9

Please sign in to comment.