Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #19885: Jupyter documentation fails for notebooks in subdirectories
Exactly the same as #19469, but for help links. Steps to reproduce: * Start sage --notebook=jupyter * In the Jupyter file browser, select New -> Folder * Click on the newly-created "Untitled Folder" (name does not matter) * Create a new Sage kernel notebook in this subfolder * Click on Help -> Sage Documentation Opened URL is `http://localhost:8888/notebooks/Untitled%20Folder/kernels pecs/sagemath/doc/index.html` Correct URL would be `http://localhost:8888/kernelspecs/sagemath/doc/reference/index.html` URL: http://trac.sagemath.org/19885 Reported by: vbraun Ticket author(s): Volker Braun Reviewer(s): Emmanuel Charpentier
- Loading branch information
Showing
3 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.0.4.p2 | ||
4.0.4.p3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Use require.toUrl for help_links | ||
|
||
Dirty patch for the minified js, real PR is at | ||
https://github.com/jupyter/notebook/pull/958 | ||
|
||
|
||
--- a/notebook/static/notebook/js/main.min.js 2016-01-15 10:20:30.769442884 +0100 | ||
+++ b/notebook/static/notebook/js/main.min.js 2016-01-15 10:20:53.073164049 +0100 | ||
@@ -28358,7 +28358,7 @@ | ||
.append($("<a>") | ||
.attr('target', '_blank') | ||
.attr('title', 'Opens in a new window') | ||
- .attr('href', link.url) | ||
+ .attr('href', require.toUrl(link.url)) | ||
.append($("<i>") | ||
.addClass("fa fa-external-link menu-icon pull-right") | ||
) | ||
@@ -30547,4 +30547,4 @@ | ||
define("notebook/js/main", function(){}); | ||
|
||
|
||
-//# sourceMappingURL=main.min.js.map | ||
\ No newline at end of file | ||
+//# sourceMappingURL=main.min.js.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters