From 0f8dc9ca974a60400dd111b162d732e76b66750b 2013-12-13 22:46:51 From: Thomas Kluyver Date: 2013-12-13 22:46:51 Subject: [PATCH] Add option to download as reST --- diff --git a/IPython/html/static/notebook/js/menubar.js b/IPython/html/static/notebook/js/menubar.js index 1714bcd..8036960 100644 --- a/IPython/html/static/notebook/js/menubar.js +++ b/IPython/html/static/notebook/js/menubar.js @@ -133,7 +133,11 @@ var IPython = (function (IPython) { this.element.find('#download_html').click(function () { that._nbconvert('html', true); }); - + + this.element.find('#download_rst').click(function () { + that._nbconvert('rst', true); + }); + this.element.find('#rename_notebook').click(function () { IPython.save_widget.rename_notebook(); }); diff --git a/IPython/html/templates/notebook.html b/IPython/html/templates/notebook.html index 1cff46d..84e8c37 100644 --- a/IPython/html/templates/notebook.html +++ b/IPython/html/templates/notebook.html @@ -83,6 +83,7 @@ class="notebook_app"
  • IPython Notebook (.ipynb)
  • Python (.py)
  • HTML (.html)
  • +
  • reST (.rst)