Suppress warnings from all non-existing directives/roles

Vinicius Kwiecien Ruoso <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <CAMEDm+DoPKEmQsz-P2rqLqut8yjU3oUokC_f6JC0MNKjfsWG_A@mail.gmail.com>
Hi all,

I'm looking for a way to read a reST file with non-standard
directives/roles and suppress its error/warning messages. The ideia is
to not generate error **only** when those non-existing
directives/roles appear, but continue to report errors about other
matters.

To read the file it is used the docutils publish_doctree method. I see
I can use settings_overrides={'report_level':'none'} to suppress all
messages. Can this be done to suppress only that kind of message?
Taking a quick look at the code I tend to say no, but I want to be
sure.

Thanks,
Vinicius

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.