sphinx-doc/sphinx

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

Open

#11,873 建立於 2024年1月12日

在 GitHub 查看
 (3 留言) (4 反應) (0 負責人)Python (5,625 star) (1,985 fork)batch import
good first issuehelp wanted

描述

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

貢獻者指南

Provide a better error message if the master document is not included in project documents · sphinx-doc/sphinx#11873 | Good First Issue