Python Sphinx exclude patterns

exclude_patterns can be used to exclude source files (reStructuredText files) from processing by sphinx-build.

exclude_patterns has no effect when using sphinx-apidoc to generate reStructuredText files from Python modules (but you can tell sphinx-apidoc that certain pathnames should be excluded from the generation).


Docs for exclude_patterns indicate that 'workflow/definitions' should ignore that directory, assuming that the source files all end with .rst.

You can configure the source file suffices as a list:

source_suffix = ['.rst', '.txt']