-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC/CI: include api docs on travis #11069
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/CI: include api docs on travis #11069
Conversation
@@ -978,7 +978,7 @@ specific plotting methods of the form ``DataFrame.plot.<kind>``. | |||
|
|||
.. autosummary:: | |||
:toctree: generated/ | |||
:template: autosummary/accessor_plot.rst | |||
:template: autosummary/accessor_callable.rst |
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.
oops! looks like this snuck through before
3c4d817
to
08e7f29
Compare
might simply want to create a doc-build (e.g. this issue #3800) |
@jreback yes, I know, but I was first just experimenting a bit to get it working (not very familiar with travis/bash syntax details). Once I have something working the idea was indeed to put it in a separate travis build. The problem I have now, is that for some reason |
is make.py writing to stderr? then could just redirect maybe it's buffering? |
6150518
to
936069e
Compare
The |
936069e
to
f0cf95f
Compare
aha, hadn't notices that there is also a separate |
93bf54f
to
7eb2a8e
Compare
03d41f5
to
9512ed6
Compare
@jreback With the last commit the full docs build OK, although it took 37 minutes. So I put it in a separate travis build, and include the full api docs (there is still a temporary commit to let the others fail). Can you have a look at the travis ci changes? (it also included somes hacks to numpydoc to prevent some warnings, they are not very nice hacks, but the warnings had to be eliminated to get it running on travis (otherwise the log was too big ..)). |
@@ -18,6 +18,7 @@ git: | |||
|
|||
matrix: | |||
fast_finish: true | |||
fail_fast: true |
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.
I actually don't think we should have this and leave it false. That way you can see the full gamut of errors (of course for your testsing ok)
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.
yes, this one is from the temporary commit just for testing, will remove it
@@ -4,6 +4,10 @@ echo "inside $0" | |||
|
|||
source activate pandas | |||
|
|||
if [ x"$DOC_BUILD" != x"" ]; then | |||
exit 0 |
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.
for testing?
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.
this one is on purpose and not for testing, so that the doc build does not run the tests (only the docs)
@jorisvandenbossche all looks cool to me then. I know the doc-build takes a while but so what its in the lower section. note - the builds run in the order that they are defined in the top section (no matter if they are in th ebottom section or not). So you prob want to have the doc-build run last? (I think you have it that way). That way other workers can finish the other jobs. we can have 5 simultaneously i think. |
…g members) The Categorical docstring in api.rst uses a seperate template to not include an autosummary table with toctrees of all members. But numpydoc still includes a list by default (which will gives thousands of warnings). This hack ensures that for Categorical class docstring this list is not included.
See GH6100. Some attributes of our classes are None, even on the class objects themselves (so not on instances). By default, numpydoc does not include them in the autosummary table but in a separate plain table. But, our class.rst template does include them in the toctree autosummary, which creates docstring pages for these. This results in warnings "WARNING: document isn't included in any toctree". This hack to numpydoc does include them in the autosummary in the class docstring, removing this warning.
9512ed6
to
556b085
Compare
The problem with this approach is that the time it takes to build on Travis seems rather variable (maybe depending on its load?). In any case, sometimes it succeeded to finish it in ca 45 min, but other times it goes up to 50min and then travis aborts it. |
@jorisvandenbossche closing, but reopen if updating in theory this looks like a great idea....but yeh it takes quite some time to build the API docs |
Continued in #12002 |
Continuation of #11069 (It seems I cannot reopen that PR because I already force pushed the branch ..) Closes #3800 TODO: - [x] remove printing of doc build log file in after_script Author: Joris Van den Bossche <[email protected]> Closes #12002 from jorisvandenbossche/travis-full-doc and squashes the following commits: 2aaa92d [Joris Van den Bossche] DOC fixes d9af945 [Joris Van den Bossche] Install latest sphinx version with pip c8e58b0 [Joris Van den Bossche] DOC/CI: include api docs on travis
Continued in #12002
Closes #6100
Closes #3800
Just to check how this takes on travis