use less as a component

This commit is contained in:
Matthias BUSSONNIER 2013-01-25 17:32:43 +01:00
parent 6217b6283e
commit d078afb51a
2 changed files with 6 additions and 2 deletions

View File

@ -353,7 +353,11 @@ class NotebookApp(BaseIPythonApplication):
it. This is mainly convenient when working on the less
file to avoid a build step, or if user want to overwrite
some of the less variables without having to recompile
everything.""")
everything.
You will need to install the less.js component in the static directory
either in the source tree or in your profile folder.
""")
webapp_settings = Dict(config=True,
help="Supply overrides for the tornado.web.Application that the "

View File

@ -185,7 +185,7 @@ data-notebook-id={{notebook_id}}
{% block script %}
{% if use_less %}
<script src="{{ static_url("js/less/less-1.3.1.min.js") }}" charset="utf-8"></script>
<script src="{{ static_url("components/less.js/dist/less-1.3.3.min.js") }}" charset="utf-8"></script>
{% endif %}
<script src="{{ static_url("codemirror/lib/codemirror.js") }}" charset="utf-8"></script>