Skip to content

Commit 4f99627

Browse files
committed
Update
[ghstack-poisoned]
2 parents 7a4051e + c27ed23 commit 4f99627

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

docs/source/_static/js/torchrl_theme.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ var downloadNote = $(".sphx-glr-download-link-note.admonition.note");
944944
if (downloadNote.length >= 1) {
945945
var tutorialUrlArray = $("#tutorial-type").text().split('/');
946946

947-
var githubLink = "https://github.com/pytorch/rl/tree/tutorial_py_dup/sphinx-tutorials/" + tutorialUrlArray[tutorialUrlArray.length - 1] + ".py",
947+
var githubLink = "https://github.com/pytorch/rl/tree/tutorial_py_dup/sphinx-" + tutorialUrlArray[tutorialUrlArray.length - 1] + ".py",
948948
notebookLink = $(".sphx-glr-download-jupyter").find(".download.reference")[0].href,
949949
notebookDownloadPath = notebookLink.split('_downloads')[1],
950950
colabLink = "https://colab.research.google.com/github/pytorch/rl/blob/gh-pages/_downloads" + notebookDownloadPath;

docs/source/_templates/layout.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
var downloadNote = $(".sphx-glr-download-link-note.admonition.note");
6161
if (downloadNote.length >= 1) {
6262
var tutorialUrl = $("#tutorial-type").text();
63-
var githubLink = "https://github.com/pytorch/rl/blob/main/tutorials/sphinx-tutorials/" + tutorialUrl + ".py",
63+
var githubLink = "https://github.com/pytorch/rl/blob/main/tutorials/sphinx-" + tutorialUrl + ".py",
6464
notebookLink = $(".sphx-glr-download-jupyter").find(".download.reference")[0].href,
6565
notebookDownloadPath = notebookLink.split('_downloads')[1],
6666
colabLink = "https://colab.research.google.com/github/pytorch/rl/blob/gh-pages/main/_downloads" + notebookDownloadPath;

tutorials/sphinx-tutorials/rb_tutorial.py

-3
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,8 @@
5656
# example:
5757
#
5858

59-
# sphinx_gallery_start_ignore
6059
import gc
6160

62-
# sphinx_gallery_end_ignore
63-
6461
import tempfile
6562

6663
from torchrl.data import ReplayBuffer

0 commit comments

Comments
 (0)