Skip to content

DOC, BUILD: fail on doc build warnings #13064

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

Closed
wants to merge 3 commits into from

Conversation

mattip
Copy link
Member

@mattip mattip commented Mar 1, 2019

Fail documentation builds if there are any warnings.

It turns out my optimism after #13002 was not quite justified. There are a few warnings not WARNINGS still when building documentation, those cause the build to fail when using -WT.

@rgommers suggested using --keep-going. Unfortunately this is a sphinx 1.8+ feature, which we cannot use due to scipy/scipy-sphinx-theme#9, which we really should fix.

EDIT: the scipy-sphinx-theme related issue was fixed in Sphinx; Sphinx 1.8.3+ is backward compatible.

@@ -714,6 +714,7 @@

"""))


Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am pretty sure the warnings genetated by the Example sections here are bugs. The problem is that the docstring attributes for broadcast.nd, broadcast.ndim, and broadcast.numiter are being inlined rather than linked to, but only for these three attributes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any idea why only those are being inlined?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No.

It is complicated to find, since the real error is not the warning, but that these attributes are being handled differently by the autsummary mechanism.

@mattip mattip force-pushed the doc-fail-on-warnings branch from 16cdc84 to 6f1a854 Compare March 1, 2019 09:10
@mattip
Copy link
Member Author

mattip commented Mar 13, 2019

Closing in favor of the approach in #13104

@mattip mattip closed this Mar 13, 2019
@mattip mattip deleted the doc-fail-on-warnings branch May 20, 2019 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants