##// END OF EJS Templates
Merge pull request #3333 from t-8ch/patch-1...
Merge pull request #3333 from t-8ch/patch-1 notebookapp: add missing whitespace to warnings

File last commit:

r10526:65ac40a9
r10680:70362b81 merge
Show More
fabfile.py
21 lines | 621 B | text/x-python | PythonLexer
""" 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 css(minify=True):
"""generate the css from less files"""
if minify not in ['True', 'False', True, False]:
abort('minify must be Boolean')
minify = (minify in ['True',True])
min_flag= '-x' if minify is True else ''
lessc = os.path.join('components', 'less.js', 'bin', 'lessc')
with lcd(static_dir):
local('{lessc} {min_flag} less/style.less css/style.min.css'.format(**locals()))