##// END OF EJS Templates
fix regular expression for detecting links in stdout...
fix regular expression for detecting links in stdout The previous expression was matching both the beginning and the end of the line, which would end up swallowing the next match, ultimately matching every other URL in the string. This removes the end-of-line check, so it will match every URL. The wrapURLs function to make URLs easier to identify does not seem to have been necessary, and has thus been removed. closes #2834

File last commit:

r9300:f83690e8
r10045:d8ed554e
Show More
fabfile.py
26 lines | 772 B | text/x-python | PythonLexer
Matthias BUSSONNIER
migrate from make to fabric
r9299 """ 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))
Matthias BUSSONNIER
not minify option
r9300 def css(minify=True):
Matthias BUSSONNIER
migrate from make to fabric
r9299 """generate the css from less files"""
test_component('bootstrap')
test_component('less.js')
Matthias BUSSONNIER
not minify option
r9300 if minify not in ['True','False',True,False]:
abort('need to get Boolean')
minify = (minify in ['True',True])
min_flag= '-x' if minify is True else ''
Matthias BUSSONNIER
migrate from make to fabric
r9299 with lcd(static_dir):
Matthias BUSSONNIER
not minify option
r9300 local('lessc {min_flag} less/style.less css/style.min.css'.format(min_flag=min_flag))
Matthias BUSSONNIER
migrate from make to fabric
r9299