Relative Content

Tag Archive for python-sphinxsuppress-warnings

Is there a way to suppress warnings but only for a given directory in Sphinx?

I am generating API documentation using autoapi.extension in Sphinx. It is a large repo, and not all of the doc strings are well formatted and this generates a lot of sphinx docutils warnings. However I also want sphinx to fail on warnings for the rst files that are manually written. The autogenerated api gets written to a specific directory, so I was wondering if there was a way to ignore warnings just in that specific section

Is there a way to suppress warnings but only for a given directory in Sphinx?

I am generating API documentation using autoapi.extension in Sphinx. It is a large repo, and not all of the doc strings are well formatted and this generates a lot of sphinx docutils warnings. However I also want sphinx to fail on warnings for the rst files that are manually written. The autogenerated api gets written to a specific directory, so I was wondering if there was a way to ignore warnings just in that specific section