Skip to content

Commit 3ab765d

Browse files
committed
testing custom launch button
1 parent 006b04f commit 3ab765d

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

book/_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ sphinx: # Options passed on to the
3232
use_edit_page_button: true # Replace with false if you don't want the edit page button (i.e. if you don't user to propose changes themselves or have a private repo)
3333
use_repository_button: true # Replace with false if you don't want the repository button (i.e. if you have a private repo)
3434
use_issues_button : true # Replace with false if you don't want the issues button (i.e. if you don't want to use GitHub issues or have a private repo)
35-
# launch_buttons:
36-
# jupyterhub_url: https://ewatercycle2526.ewatercycle-tud.src.surf-hosted.nl/jupyter # server is not operational
37-
# notebook_interface: "jupyterlab"
38-
# thebe: true # Required for live code: https://teachbooks.io/manual/features/live_code.html
35+
launch_buttons:
36+
jupyterhub_url: https://ewatercycle2526.ewatercycle-tud.src.surf-hosted.nl/jupyter # server is not operational
37+
notebook_interface: "jupyterlab"
38+
thebe: true # Required for live code: https://teachbooks.io/manual/features/live_code.html
3939
html_show_copyright: false # As the copyright is included in the author field
4040
html_last_updated_fmt: '%B %-d, %Y' # Adds the date of the last update to the footer
4141
html_static_path: ["figures"] # Add folder that contain files that need to be included, such as the location of the logo(s)
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
window.addEventListener("DOMContentLoaded", () => {
2-
const header = document.querySelector("header");
3-
4-
if (header) {
5-
const customButton = document.createElement("a");
6-
customButton.textContent = "Launch Custom JupyterHub";
7-
customButton.className = "custom-launch-button";
8-
customButton.style.backgroundColor = "#007ACC";
9-
customButton.style.color = "white";
10-
customButton.style.padding = "6px 12px";
11-
customButton.style.marginLeft = "10px";
12-
customButton.style.borderRadius = "4px";
13-
customButton.style.textDecoration = "none";
14-
customButton.style.fontWeight = "bold";
15-
16-
// Set your custom URL here
17-
customButton.href = "https://your-custom-jupyterhub-url/lab";
18-
customButton.target = "_blank";
19-
20-
header.appendChild(customButton);
21-
}
22-
});
1+
// window.addEventListener("DOMContentLoaded", () => {
2+
// const header = document.querySelector("header");
3+
//
4+
// if (header) {
5+
// const customButton = document.createElement("a");
6+
// customButton.textContent = "Launch Custom JupyterHub";
7+
// customButton.className = "custom-launch-button";
8+
// customButton.style.backgroundColor = "#007ACC";
9+
// customButton.style.color = "white";
10+
// customButton.style.padding = "6px 12px";
11+
// customButton.style.marginLeft = "10px";
12+
// customButton.style.borderRadius = "4px";
13+
// customButton.style.textDecoration = "none";
14+
// customButton.style.fontWeight = "bold";
15+
//
16+
// // Set your custom URL here
17+
// customButton.href = "https://your-custom-jupyterhub-url/lab";
18+
// customButton.target = "_blank";
19+
//
20+
// header.appendChild(customButton);
21+
// }
22+
// });

0 commit comments

Comments
 (0)