sphinx-doc/sphinx

Provide a better error message if the master document is not included in project documents

Chiusa

#11.873 aperta il 12 gen 2024

 (3 commenti) (4 reazioni) (0 assegnatari)Python (1985 fork)batch import
good first issuehelp wanted

Metriche repository

Star
 (5625 stelle)
Metriche merge PR
 (Merge medio 10g 11h) (11 PR mergiate in 30 g)

Descrizione

If index.rst does not appear in the pattern of a custom {include,exclude}_patterns, the error message is less than helpful. Instead, we should check that the master doc appears in the Project documents, and provide a better error if it doesn’t.

Inspiration from https://github.com/sphinx-doc/sphinx/issues/11722#issuecomment-1886157588

Guida contributor