Closed ianychoi closed 6 years ago
Could you let me know what the warnings are emitted without -W option? I will fix the warning for node classes later. But I'd like to know what the warnings are emitted any other.
I can take this, seeing as I broke it. It's an issue with docutils' use of global state - we should either make sphinx.application.Application
a singleton or, better, store that global state as part of the sphinx.application.Application
or sphinx.registry.Registry
objects.
Yes, that is purpose of the registry class. Now I'm going to move components step by step. The nodes are next target of my refactoring.
Note: docutils is designed to store components in global. So essentially it is hard to change not to store all status in global.
But I try to keep the effects to limited scopes with "write back" techniques.
For example, sphinx.util.docutils:sphinx_domain()
goes to restore the registered directive and roles after processing.
https://github.com/sphinx-doc/sphinx/blob/3413590edd75af664f46b2fcd5e50c18c4c4ec79/sphinx/util/docutils.py#L85-L157
It seems current master branch does not emit any warnings for horizon docs. So I'm closing this. Please let me know if you still have other issue.
Thanks,
Problem
Of course, "warning-is-error = 0" in setup.cfg makes it work fine, but since the warning is not from actual documentation, it would not be treated as warnings I think. Just either "builder = html" or "builder = latex" works without any warnings.
Procedure to reproduce the problem
Error logs / results
The warning message is:
, and the full log is:
Expected results
Successfully executed without any warning and outputs will be in both doc/build/html and doc/build/latex folders.
Reproducible project / your project
Environment info