Skip to content

Commit

Permalink
[Doc] Restore colab links (#2197)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Jun 5, 2024
1 parent e5c3e32 commit 013d110
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 635 deletions.
2 changes: 1 addition & 1 deletion docs/source/_static/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ if (downloadNote.length >= 1) {
var githubLink = "https://github.com/pytorch/rl/blob/main/" + tutorialUrlArray.join("/") + ".py",
notebookLink = $(".reference.download")[1].href,
notebookDownloadPath = notebookLink.split('_downloads')[1],
colabLink = "https://colab.research.google.com/github/pytorch/rl/blob/gh-pages/_downloads" + notebookDownloadPath;
colabLink = "https://colab.research.google.com/github/pytorch/rl/blob/gh-pages/main/_downloads" + notebookDownloadPath;

$("#google-colab-link").wrap("<a href=" + colabLink + " data-behavior='call-to-action-event' data-response='Run in Google Colab' target='_blank'/>");
$("#download-notebook-link").wrap("<a href=" + notebookLink + " data-behavior='call-to-action-event' data-response='Download Notebook'/>");
Expand Down
Loading

0 comments on commit 013d110

Please sign in to comment.