Merge pull request #2430 from minrk/never-abs-urls

fix some absolute URL paths
This commit is contained in:
Min RK 2017-04-24 17:27:52 +02:00 committed by GitHub
commit 521f43f0bf
4 changed files with 2 additions and 19 deletions

View File

@ -63,16 +63,6 @@
* });
* });
*
* __Example 3:__
*
* Use `jQuery.getScript(url [, success(script, textStatus, jqXHR)] );`
* to load custom script into the notebook.
*
* // to load the metadata ui extension example.
* $.getScript('/static/notebook/js/celltoolbarpresets/example.js');
* // or
* // to load the metadata ui extension to control slideshow mode / reveal js for nbconvert
* $.getScript('/static/notebook/js/celltoolbarpresets/slideshow.js');
*
*
* @module IPython

View File

@ -1,13 +1,6 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
// Example Use for the CellToolbar library
// add the following to your custom.js to load
// Celltoolbar UI for slideshow
// ```
// $.getScript('/static/js/celltoolbarpresets/example.js');
// ```
define([
'notebook/js/celltoolbar',
], function(celltoolbar) {

View File

@ -250,7 +250,7 @@ define([
link.id = 'favicon';
link.type = 'image/x-icon';
link.rel = 'shortcut icon';
link.href = src;
link.href = utils.url_path_join(utils.get_body_data('baseUrl'), src);
if (oldLink) document.head.removeChild(oldLink);
document.head.appendChild(link);
};

View File

@ -140,7 +140,7 @@ define([
.append(
$('<link>')
.attr('rel',"stylesheet")
.attr('href',"/static/css/notebook.css")
.attr('href', utils.url_path_join(utils.get_body_data('baseUrl'), "static/style/style.min.css"))
.attr('type',"text/css")
)
.append(