-
Notifications
You must be signed in to change notification settings - Fork 157
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
Resolving documentation build warnings #758
Comments
I also ran into some of these in iiasa/message-ix-models#122, and you can browse the fixes (only partial) I made on that branch. Some notes:
My approach to fixing these was to run something like |
Regarding the first part of the warnings, reading sources... [ 2%] api
Cannot locate code for 'message_ix.models.DEFAULT_CPLEX_OPTIONS' or parent class/module
Cannot locate code for 'message_ix.models.MESSAGE_ITEMS' or parent class/module
Cannot locate code for 'message_ix.macro.MACRO_ITEMS' or parent class/module they originate from |
The precise source of the first group of warnings seems to be slightly off from what I described above. .. autosummary::
DERIVED
DIMS
MAPPING_SETS
PRODUCTS
PYAM_CONVERT
REPORTS all of which are dicts, but none of which complain about missing source code. This shifts the error to the missing parent class/module, because the difference here is that all these dicts are part of |
Unfortunately, I don't think I have the time now to resolve all of these issues. I've created #759 with some commits containing fixes for the second group of warnings. The other issuesThe third and fourth group of errors/warnings originate from the interplay of message_ix with genno. Both complain about docstrings in The third group of errorsOne issue is with replacements: genno recently introduced several variables of the sort rst_prolog = """
.. role:: py(code)
:language: python
.. |KeyLike| replace:: :obj:`~genno.core.key.KeyLike`
""" Unfortunately, these don't seem to resolve correctly when mentioning The fourth group of warningsThe second issue is with references to documents within genno, so most likely the fix should also happen within genno. The references to the documents |
As mentioned in #757, our docs are building successfully, though with several warnings:
These warnings and errors probably mean that some aspects of our framework are not documented as expected, though most of that seems to be due to erroneous links. We should investigate how these links ought to look so that our documentation can be complete (again).
Possible sources for e.g.
ixmp.testing
missing:testing
module that got renamedtesting
module, but the docs don't have ittesting
The text was updated successfully, but these errors were encountered: