diff --git a/v8/hide_input_cells/README.md b/v8/hide_input_cells/README.md new file mode 100644 index 00000000..7fb7c5fd --- /dev/null +++ b/v8/hide_input_cells/README.md @@ -0,0 +1 @@ +This plugin hides the input cells from the html file which was generated from a jupyter notebook. \ No newline at end of file diff --git a/v8/hide_input_cells/hide_input_cells.plugin b/v8/hide_input_cells/hide_input_cells.plugin new file mode 100644 index 00000000..cd33d179 --- /dev/null +++ b/v8/hide_input_cells/hide_input_cells.plugin @@ -0,0 +1,12 @@ +[Core] +Name = hide_input_cells +Module = hide_input_cells + +[Nikola] +PluginCategory = ConfigPlugin +MinVersion = 7.1.0+ + +[Documentation] +Author = Surya Sankar +Version = 0.0.1 +Description = Hide all input cells diff --git a/v8/hide_input_cells/hide_input_cells.py b/v8/hide_input_cells/hide_input_cells.py new file mode 100644 index 00000000..75e21da2 --- /dev/null +++ b/v8/hide_input_cells/hide_input_cells.py @@ -0,0 +1,20 @@ +from __future__ import unicode_literals +from nikola.plugin_categories import ConfigPlugin + + +class HideInputCells(ConfigPlugin): + def set_site(self, site): + site.template_hooks['extra_head'].append( + """ + + + """ + ) + return super(HideInputCells, self).set_site(site)