Issue 3097: sphinx: config option for exclude_dirnames (original) (raw)

I'm building developer documentation for an existing project that already had reStructuredText files scattered in the source tree. Unfortunately these use the same extension (.txt) as functional doctest files, but fortunately tests live only in subdirectories named 'ftests'. Unfortunately, sphinx doesn't support globs in exclude_dirs or exclude_trees, so I cannot just exclude "**/ftests".

It would help me if I could specify the exclude_dirnames option that's currently hardcoded inside BuildEnvironment.find_files in my conf.py.