Merge pull request #6188 from jasongrout/highlightjs-require-shim

Add a requirejs shim for highlight.js
This commit is contained in:
Matthias Bussonnier 2014-07-24 13:53:28 +02:00
commit 16d21d3267
2 changed files with 7 additions and 1 deletions

View File

@ -11,6 +11,7 @@ define([
'services/sessions/js/session',
'notebook/js/celltoolbar',
'components/marked/lib/marked',
'highlight',
'notebook/js/mathjaxutils',
'base/js/keyboard',
'notebook/js/tooltip',
@ -27,6 +28,7 @@ define([
session,
celltoolbar,
marked,
hljs,
mathjaxutils,
keyboard,
tooltip,

View File

@ -27,6 +27,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: {
@ -50,7 +51,10 @@
jqueryui: {
deps: ["jquery"],
exports: "$"
}
},
highlight: {
exports: "hljs"
},
}
});
</script>