Skip to content

Commit 521f43f

Browse files
authored
Merge pull request #2430 from minrk/never-abs-urls
fix some absolute URL paths
2 parents e1ba007 + 61439f8 commit 521f43f

File tree

4 files changed

+2
-19
lines changed

4 files changed

+2
-19
lines changed

notebook/static/custom/custom.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,6 @@
6363
* });
6464
* });
6565
*
66-
* __Example 3:__
67-
*
68-
* Use `jQuery.getScript(url [, success(script, textStatus, jqXHR)] );`
69-
* to load custom script into the notebook.
70-
*
71-
* // to load the metadata ui extension example.
72-
* $.getScript('/static/notebook/js/celltoolbarpresets/example.js');
73-
* // or
74-
* // to load the metadata ui extension to control slideshow mode / reveal js for nbconvert
75-
* $.getScript('/static/notebook/js/celltoolbarpresets/slideshow.js');
7666
*
7767
*
7868
* @module IPython

notebook/static/notebook/js/celltoolbarpresets/example.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
// Copyright (c) Jupyter Development Team.
22
// Distributed under the terms of the Modified BSD License.
33

4-
// Example Use for the CellToolbar library
5-
// add the following to your custom.js to load
6-
// Celltoolbar UI for slideshow
7-
8-
// ```
9-
// $.getScript('/static/js/celltoolbarpresets/example.js');
10-
// ```
114
define([
125
'notebook/js/celltoolbar',
136
], function(celltoolbar) {

notebook/static/notebook/js/notificationarea.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ define([
250250
link.id = 'favicon';
251251
link.type = 'image/x-icon';
252252
link.rel = 'shortcut icon';
253-
link.href = src;
253+
link.href = utils.url_path_join(utils.get_body_data('baseUrl'), src);
254254
if (oldLink) document.head.removeChild(oldLink);
255255
document.head.appendChild(link);
256256
};

notebook/static/notebook/js/pager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ define([
140140
.append(
141141
$('<link>')
142142
.attr('rel',"stylesheet")
143-
.attr('href',"/static/css/notebook.css")
143+
.attr('href', utils.url_path_join(utils.get_body_data('baseUrl'), "static/style/style.min.css"))
144144
.attr('type',"text/css")
145145
)
146146
.append(

0 commit comments

Comments
 (0)