Skip to content

Commit

Permalink
Merge pull request #3287 from damianavila/add_slides_export
Browse files Browse the repository at this point in the history
Add slides exportation/download to the menu
  • Loading branch information
takluyver committed Feb 2, 2018
2 parents bdd62b3 + 0570d9b commit a812581
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions notebook/static/notebook/js/menubar.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ define([
that._nbconvert('html', true);
});

this.element.find('#download_slides').click(function () {
that._nbconvert('slides', true);
});

this.element.find('#download_markdown').click(function () {
that._nbconvert('markdown', true);
});
Expand Down
1 change: 1 addition & 0 deletions notebook/templates/notebook.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
<li id="download_ipynb"><a href="#">{% trans %}Notebook (.ipynb){% endtrans %}</a></li>
<li id="download_script"><a href="#">{% trans %}Script{% endtrans %}</a></li>
<li id="download_html"><a href="#">{% trans %}HTML (.html){% endtrans %}</a></li>
<li id="download_slides"><a href="#">{% trans %}Reveal.js slides (.html){% endtrans %}</a></li>
<li id="download_markdown"><a href="#">{% trans %}Markdown (.md){% endtrans %}</a></li>
<li id="download_rst"><a href="#">{% trans %}reST (.rst){% endtrans %}</a></li>
<li id="download_latex"><a href="#">{% trans %}LaTeX (.tex){% endtrans %}</a></li>
Expand Down

0 comments on commit a812581

Please sign in to comment.