From d4245c9ba2d4e38952b52b4e5c7898ae18766acc 2014-07-23 21:13:42 From: Jason Grout Date: 2014-07-23 21:13:42 Subject: [PATCH] Move shim to the standard location --- diff --git a/IPython/html/static/notebook/js/main.js b/IPython/html/static/notebook/js/main.js index db747be..b36dcfc 100644 --- a/IPython/html/static/notebook/js/main.js +++ b/IPython/html/static/notebook/js/main.js @@ -1,12 +1,6 @@ // Copyright (c) IPython Development Team. // Distributed under the terms of the Modified BSD License. -requirejs.config({ - shim: { - 'components/highlight.js/build/highlight.pack': {exports: 'hljs'} - } -}); - require([ 'base/js/namespace', 'jquery', diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index d65da64..658cbd0 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -11,7 +11,7 @@ define([ 'services/sessions/js/session', 'notebook/js/celltoolbar', 'components/marked/lib/marked', - 'components/highlight.js/build/highlight.pack', + 'highlight', 'notebook/js/mathjaxutils', 'base/js/keyboard', 'notebook/js/tooltip', diff --git a/IPython/html/templates/page.html b/IPython/html/templates/page.html index b882f51..e0af437 100644 --- a/IPython/html/templates/page.html +++ b/IPython/html/templates/page.html @@ -26,6 +26,7 @@ bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min', dateformat: 'dateformat/date.format', jqueryui: 'components/jquery-ui/ui/minified/jquery-ui.min', + highlight: 'components/highlight.js/build/highlight.pack', }, shim: { underscore: { @@ -44,7 +45,10 @@ jqueryui: { deps: ["jquery"], exports: "$" - } + }, + highlight: { + exports: "hljs" + }, } });