Skip to content

Conversation

@larsoner
Copy link
Contributor

This does two things:

  1. Suppresses output when doing plot_gallery=False saying it took 0 seconds to run a bunch of examples that didn't run. It's not very informative, and it makes the sphinx output very long, thus making things like checking for good sphink markup, bad links, etc. harder (what plot_gallery=False is mostly used for, I assume).

  2. Uses app.status_iterator for the last stage of processing where code is embedded. Instead of having tens or hundreds of lines, now the output looks like the rest of sphinx, e.g.:

    auto_examples[100%] plot_left_cerebellum_volume_source.html
    auto_tutorials[100%] plot_ica_from_raw.html
    

@larsoner
Copy link
Contributor Author

Sample log:

https://travis-ci.org/sphinx-gallery/sphinx-gallery/jobs/184597871#L942

BTW, anybody ever thought of setting up CircleCI with artifacts so that the build results could be viewed? Might be useful for assessing aesthetic changes. I can set it up if people agree it would be useful.

Copy link
Member

@Titan-C Titan-C left a comment

Choose a reason for hiding this comment

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

looks fine to me. Closes #167

line = expr.sub(substitute_link, line)
fid.write(line.encode('utf-8'))
print('[done]')
# This could
Copy link
Member

Choose a reason for hiding this comment

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

This comment is out of place

@larsoner
Copy link
Contributor Author

Thanks @Titan-C, fixed the comment

@lesteve
Copy link
Member

lesteve commented Dec 18, 2016

BTW, anybody ever thought of setting up CircleCI with artifacts so that the build results could be viewed? Might be useful for assessing aesthetic changes. I can set it up if people agree it would be useful.

I googled the other day and it does not look like readthedocs supports generating the doc for PRs. That would be great to have CircleCI for PR to quickly double-check the generated docs.

@lesteve
Copy link
Member

lesteve commented Dec 18, 2016

LGTM, merging, thanks a lot!

@lesteve lesteve merged commit a5cb250 into sphinx-gallery:master Dec 18, 2016
@lesteve
Copy link
Member

lesteve commented Dec 18, 2016

looks fine to me. Closes #167

@Titan-C the magic keywords like this need to be in the description not in a comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants