From cbc683c81eab4e25959b9e587a7181d9ab1360a1 Mon Sep 17 00:00:00 2001 From: 0xsatoshi99 <0xsatoshi99@users.noreply.github.com> Date: Fri, 31 Oct 2025 04:05:30 +0100 Subject: [PATCH] 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 --- conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.py b/conf.py index 0cb34fd02b..0c7e561a28 100644 --- a/conf.py +++ b/conf.py @@ -175,7 +175,7 @@ def wrapper(*args, **kwargs): "promote_jupyter_magic": True, "backreferences_dir": None, "write_computation_times": True, - "download_all_examples": False, + "download_all_examples": True, "show_signature": False, "first_notebook_cell": ( "# For tips on running notebooks in Google Colab, see\n"