mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
Merge pull request #2430 from minrk/never-abs-urls
fix some absolute URL paths
This commit is contained in:
commit
521f43f0bf
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
};
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user