diff --git a/CHANGES.rst b/CHANGES.rst index ad6d698341a..f979b8f8eea 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -13,6 +13,10 @@ Bugs fixed English stemmer) and Dutch (which uses the Dutch Porter stemmer). Patch by Hugo van Kemenade +* #14625: Allow suppressing warnings for unmatched toctree glob patterns using + ``toc.empty_glob``. + Patch by Michel Albert + Release 9.1.0 (released Dec 31, 2025) ===================================== diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py index 80bedce43cb..9d50d772e65 100644 --- a/sphinx/directives/other.py +++ b/sphinx/directives/other.py @@ -119,6 +119,7 @@ def parse_content(self, toctree: addnodes.toctree) -> None: __("toctree glob pattern %r didn't match any documents"), entry, location=toctree, + type='toc', subtype='empty_glob', )