-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: add back currentmodule to api.rst #24232
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
DOC: add back currentmodule to api.rst #24232
Conversation
What makes it even stranger is that 10min.rst is build before api.rst, and there it is actually fine (the |
I'm missing a bit of content here, not sure where the extra warnings are, but there is something tricky with this:
That being said, can you merge the latest master? Because we had a problem with the |
Oh, sorry, I understood now, didn't get the problem with the links. Seems like a bug in sphinx then? |
Did you see the link to the dev docs with the non-working links? The warnings in the doc build are fully at the beginning:
and all at the end:
This is with latest master, and has nothing to do with validate_docstrings, but with the actual sphinx build. |
Yeah, not sure. It might be, but I don't understand why it works for the references, but not for autosummary. |
Ah, maybe because autosummary is ran before the inserts are done? Do you know when the |
makes sense Happy to have the current module in |
Yes, took a short dive into sphinx .. :-), and it is indeed because the autosummary generation happens before reading the files. Will add a comment about that |
Codecov Report
@@ Coverage Diff @@
## master #24232 +/- ##
===========================================
- Coverage 92.21% 43% -49.21%
===========================================
Files 162 162
Lines 51763 51763
===========================================
- Hits 47733 22261 -25472
- Misses 4030 29502 +25472
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #24232 +/- ##
==========================================
+ Coverage 92.21% 92.21% +<.01%
==========================================
Files 162 162
Lines 51763 51763
==========================================
+ Hits 47733 47734 +1
+ Misses 4030 4029 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @jorisvandenbossche
we don't have autosummaries anywhere else, do we?
* upstream/master: pct change bug issue 21200 (pandas-dev#21235) DOC: Fix summaries not ending with a period (pandas-dev#24190) DOC: Add back currentmodule to api.rst (pandas-dev#24232) DOC: Fixed implicit imports for whatsnew (v >= version 20.0) (pandas-dev#24199) remove enum import for PY2 compat, xref pandas-dev#22802 (pandas-dev#24170) CI: Simplify Azure Pipelines configuration files (pandas-dev#23111) REF/TST: Add more pytest idiom to indexing/multiindex/test_getitem.py (pandas-dev#24053)
xref #24191
@datapythonista I don't understand why, but the
.. currentmodule:: pandas
does not seem to be picked up fromheader.rst
, giving extra warnings and missing links (because in api.rst, everything up to the first inlinecurrentmodule
, is not found)See eg http://pandas-docs.github.io/pandas-docs-travis/api.html, only from json there are actual links.