Skip to content

BUG: Spamming of warnings about .exclude #126

@larsoner

Description

@larsoner

Currently my build gets hundreds of these lines:

/home/larsoner/custombuilds/mne-python/doc/generated/mne.write_labels_to_annot.rst:8: SEVERE: Problems with "include" directive path:
InputError: [Errno 2] No such file or directory: 'generated/mne.write_labels_to_annot.examples'.

It makes it difficult to find the actual useful Sphinx warnings.

I think it comes from:

doc/_templates/module.rst:   .. include:: {{fullname}}.{{item}}.examples

Is there a way to have the template only include the .examples file if it exists, or by default filter out any warnings in sphinx that occur of this form?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions