-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to specify binder environment url along with notebook
- The 'binder_env_url' field is introduced into the 'notebooks' field of the dataset schema, to allow a binder environment to be specified along with a notebook. - This URL will replace the base environment url that was previously hardcoded; while the base url remains as the default. - A fix is added to the flag that sets whether the binder button is displayed or not. - The palmerpenguins dataset metadata is updated to include some arbitrary binder_env_url in order to test the new functionality - An HTMLescape function is added to encode notebook names with e.g. spaces correctly for HTML.
- Loading branch information
Showing
4 changed files
with
33 additions
and
7 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
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 |
---|---|---|
|
@@ -126,3 +126,7 @@ function pruneObject(obj) { | |
return newObj; | ||
} | ||
|
||
|
||
function escapeHTML(str){ | ||
return new Option(str).innerHTML; | ||
} |
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
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