Skip to content

Commit 01834c8

Browse files
awaelchliBorda
andauthored
Exclude some examples from docs navigation (#17081)
Co-authored-by: Jirka <[email protected]>
1 parent f25dfbe commit 01834c8

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

_notebooks

docs/source-pytorch/conf.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,24 @@
4949
# -- Project documents -------------------------------------------------------
5050
if _SHOULD_COPY_NOTEBOOKS:
5151
AssistantCLI.copy_notebooks(
52-
PATH_RAW_NB, PATH_HERE, "notebooks", patterns=[".", "course_UvA-DL", "lightning_examples"]
52+
PATH_RAW_NB,
53+
PATH_HERE,
54+
"notebooks",
55+
patterns=[".", "course_UvA-DL", "lightning_examples"],
5356
)
57+
# TODO: Complete converting the missing items and add them back
58+
ignore = [
59+
"course_UvA-DL/13-contrastive-learning",
60+
"lightning_examples/augmentation_kornia",
61+
"lightning_examples/finetuning-scheduler",
62+
"lightning_examples/reinforce-learning-DQN",
63+
"lightning_examples/text-transformers",
64+
"lightning_examples/warp-drive",
65+
]
66+
for file in ignore:
67+
file = os.path.join(PATH_HERE, "notebooks", file)
68+
if os.path.exists(file):
69+
os.remove(file)
5470

5571

5672
def _transform_changelog(path_in: str, path_out: str) -> None:

docs/source-pytorch/index.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,6 @@ Current Lightning Users
259259
:glob:
260260

261261
notebooks/**/*
262-
PyTorch Lightning 101 class <https://www.youtube.com/playlist?list=PLaMu-SDt_RB5NUm67hU2pdE75j6KaIOv2>
263-
From PyTorch to PyTorch Lightning [Blog] <https://towardsdatascience.com/from-pytorch-to-pytorch-lightning-a-gentle-introduction-b371b7caaf09>
264-
From PyTorch to PyTorch Lightning [Video] <https://www.youtube.com/watch?v=QHww1JH7IDU>
265262

266263
.. toctree::
267264
:maxdepth: 1

0 commit comments

Comments
 (0)