Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence warning (opt in) when overriding extension directive #2451

Closed
bsipocz opened this issue Apr 14, 2016 · 2 comments
Closed

Silence warning (opt in) when overriding extension directive #2451

bsipocz opened this issue Apr 14, 2016 · 2 comments
Assignees
Milestone

Comments

@bsipocz
Copy link
Contributor

bsipocz commented Apr 14, 2016

1.4 introduced a warning for overriding roles/directives from an extension (#1962).

It would be great if this could be silenced. In our case the overriding is intentional (e.g this contains a few workarounds https://github.com/astropy/astropy-helpers/blob/master/astropy_helpers/sphinx/ext/autodoc_enhancements.py), thus the warning causes unnecessary troubles for the travis docs builds (that are set to fail if any warnings come from sphinx).

@tk0miya
Copy link
Member

tk0miya commented Apr 15, 2016

OK, I'll take a look

@tk0miya
Copy link
Member

tk0miya commented Apr 16, 2016

I added new configurations values to suppress_warnings: app.add_node, app.add_directive, app.add_role and app.add_generic_role at 21ee53d.
Please set up your project to ignore warnings using this.

Thanks,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants