Skip to content

Add missing 'toc' type for 'empty_glob' subtype#14325

Open
gastmaier wants to merge 1 commit intosphinx-doc:masterfrom
gastmaier:warn-toc-empty-glob
Open

Add missing 'toc' type for 'empty_glob' subtype#14325
gastmaier wants to merge 1 commit intosphinx-doc:masterfrom
gastmaier:warn-toc-empty-glob

Conversation

@gastmaier
Copy link

Purpose

#13230 introduced toc.empty_glob subtype, but forgot to set the type.
Due to this, the type has no effect.

The purpose of the suppressed warning is for "sparse" documentation builds, like this

# + intersphinx_disabled_reftypes set to []
exclude_patterns = [
    # ...
    'large_path',
    'huge_docs',
    # ...
]

suppress_warnings = [
    'toc.excluded',
    'toc.empty_glob',
]

This allows to work on huge docs as if they were a few pages (with the magic trick of deferring the inventory using intersphinx)

References

Fixes: "Allow suppressing ``toctree`` glob patterns (sphinx-doc#13230)
@juniorcastro0152-hub
Copy link

juniorcastro0152-hub commented Mar 10, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants