mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
add fab components
installs components with bower
This commit is contained in:
parent
1f2341ba57
commit
0323bea194
10
IPython/frontend/html/notebook/fabfile.py
vendored
10
IPython/frontend/html/notebook/fabfile.py
vendored
@ -9,15 +9,19 @@ 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))
|
||||
components()
|
||||
|
||||
def components():
|
||||
"""install components with bower"""
|
||||
with lcd(static_dir):
|
||||
local('bower install')
|
||||
|
||||
def css(minify=True):
|
||||
"""generate the css from less files"""
|
||||
test_component('bootstrap')
|
||||
test_component('less.js')
|
||||
if minify not in ['True','False',True,False]:
|
||||
abort('need to get Boolean')
|
||||
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 ''
|
||||
|
Loading…
Reference in New Issue
Block a user