From f61ca755e9ded75fd79971a6b1a2188b6052c3b6 2013-01-26 16:12:52 From: Matthias BUSSONNIER Date: 2013-01-26 16:12:52 Subject: [PATCH] migrate from make to fabric --- diff --git a/IPython/frontend/html/notebook/fabfile.py b/IPython/frontend/html/notebook/fabfile.py new file mode 100644 index 0000000..b70639f --- /dev/null +++ b/IPython/frontend/html/notebook/fabfile.py @@ -0,0 +1,21 @@ +""" fabfile to prepare the notebook """ + +from fabric.api import local,lcd +from fabric.utils import abort +import os + +static_dir = 'static' +components_dir = os.path.join(static_dir,'components') + +def test_component(name): + if not os.path.exists(os.path.join(components_dir,name)): + abort('cannot continue without component {}.'.format(name)) + + +def css(): + """generate the css from less files""" + test_component('bootstrap') + test_component('less.js') + with lcd(static_dir): + local('lessc -x less/style.less css/style.min.css') + diff --git a/IPython/frontend/html/notebook/static/Makefile b/IPython/frontend/html/notebook/static/Makefile deleted file mode 100644 index ace9598..0000000 --- a/IPython/frontend/html/notebook/static/Makefile +++ /dev/null @@ -1,7 +0,0 @@ - -.PHONY: css - -default: css - -css: less/style.less - lessc -x less/style.less css/style.min.css