diff --git a/doc/conf.py b/doc/conf.py index ef28f92ff1a..315cee38a07 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -24,6 +24,7 @@ coverage_statistics_to_report = coverage_statistics_to_stdout = True templates_path = ['_templates'] exclude_patterns = ['_build'] +suppress_warnings = ['toc.multiple_toc_parents'] project = 'Sphinx' copyright = '2007-%Y, the Sphinx developers' diff --git a/sphinx/environment/__init__.py b/sphinx/environment/__init__.py index fa7d17d7800..c98f17c3ca8 100644 --- a/sphinx/environment/__init__.py +++ b/sphinx/environment/__init__.py @@ -936,7 +936,7 @@ def _check_toc_parents(toctree_includes: dict[str, list[str]]) -> None: for doc, parents in sorted(toc_parents.items()): if len(parents) > 1: - logger.info( + logger.warning( __( 'document is referenced in multiple toctrees: %s, selecting: %s <- %s' ),