@@ -176,7 +176,31 @@ def get_tarball_version(path, expr):
176176# List of patterns, relative to source directory, that match files and
177177# directories to ignore when looking for source files.
178178# This pattern also affects html_static_path and html_extra_path.
179- exclude_patterns = ['_build' , 'Thumbs.db' , '.DS_Store' , 'venv' , 'py*/**' ]
179+ #
180+ # Note that we exclude the entire prrte-rst-content/ directory.
181+ # Here's why:
182+ #
183+ # * By default, Sphinx will warn about any .rst file that it finds in
184+ # the doc tree that is not referenced via either the "include"
185+ # directive or via a TOC.
186+ # * The prrte-rst-content/ directory contains files that we *do* use
187+ # here in the OMPI docs, but it also contains files that we do
188+ # *not* use here in the OMPI docs.
189+ # * Consequently, we explicitly ".. include:: <filename>" the specific
190+ # files that we want from the prrte-rst-content/ directory. And we
191+ # specifically do *not* include at least some files in the
192+ # prrte-rst-content directory.
193+ # * Listing files/patterns in exclude_patterns:
194+ # * Will prevent Sphinx from searching for/finding new .rst files
195+ # that match those patterns.
196+ # * Will not prevent explicitly ".. include:"'ing a file with a name
197+ # that matches a pattern in exclude_patterns.
198+ #
199+ # Hence, listing prrte-rst-content in exclude_patterns means that
200+ # Sphinx won't complain about the .rst files in that tree that we are
201+ # not referencing from here in the OMPI docs.
202+ exclude_patterns = ['_build' , 'Thumbs.db' , '.DS_Store' , 'venv' , 'py*/**' ,
203+ 'prrte-rst-content' ]
180204
181205
182206# Clarify the language for verbatim blocks (::)
0 commit comments