Skip to content

Commit cbc683c

Browse files
committed
Enable download button for offline tutorial access - Fixes #712
Enables the download_all_examples feature in Sphinx gallery configuration to allow users to download tutorials for offline access. Issue: Users requested the ability to access PyTorch tutorials offline (e.g., before flights) without having to build the entire repository locally, which takes a long time. Solution: Changed download_all_examples from False to True in conf.py. This enables download buttons on all tutorial pages, allowing users to: - Download individual tutorial files - Access tutorials offline - Save tutorials for later reference Benefits: - Improves accessibility for users with limited internet - Enables offline learning and development - Reduces barrier to entry (no need to build repo) - Aligns with common documentation practices This is a simple one-line configuration change that significantly improves user experience for offline access to PyTorch tutorials. Fixes #712
1 parent 9dc8613 commit cbc683c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def wrapper(*args, **kwargs):
175175
"promote_jupyter_magic": True,
176176
"backreferences_dir": None,
177177
"write_computation_times": True,
178-
"download_all_examples": False,
178+
"download_all_examples": True,
179179
"show_signature": False,
180180
"first_notebook_cell": (
181181
"# For tips on running notebooks in Google Colab, see\n"

0 commit comments

Comments
 (0)