浏览代码

Explain new collapsible code cells feature in Readme.md

Jörg Dietrich 11 年之前
父节点
当前提交
b412bb1c56
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      liquid_tags/Readme.md

+ 11 - 0
liquid_tags/Readme.md

@@ -98,4 +98,15 @@ are a few extra steps required for this plugin:
 
   this will insert the proper css formatting into your document.
 
+### Collapsible Code in IPython Notebooks
+
+The plugin also enables collapsible code input boxes. For this to work
+you first need to copy the file ``pelicanhtml.tpl`` to the top level
+of your Pelican blog. Notebook input cells containing the comment line
+``# <!-- collapse=True -->`` will be collapsed when the html page is
+loaded and can be expanded by clicking on them. Cells containing the
+comment line ``# <!-- collapse=False -->`` will be open on load but
+can be collapsed by clicking on their header. Cells without collapse
+comments are rendered as standard code input cells.
+
 [1] http://ipython.org/