From d9bc7de128a9248e0ee795c21f297c7bf7d10723 Mon Sep 17 00:00:00 2001 From: Fazeel Usmani Date: Thu, 20 Nov 2025 16:07:02 +0530 Subject: [PATCH] Fix empty _sources directory created when html_copy_source is False --- sphinx/builders/html/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/builders/html/__init__.py b/sphinx/builders/html/__init__.py index 6146201fa9b..e9622308165 100644 --- a/sphinx/builders/html/__init__.py +++ b/sphinx/builders/html/__init__.py @@ -571,7 +571,7 @@ def prepare_writing(self, docnames: Set[str]) -> None: } self.globalcontext |= self.config.html_context - if self.copysource: + if self.config.html_copy_source: # Create _sources ensuredir(self._sources_dir)