-
Notifications
You must be signed in to change notification settings - Fork 482
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
Capture PNG output in addition to SVG #738
Conversation
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 tackling this!
While we're at it, perhaps we should also add a few other common MIMEs? JPEG, GIF, WebP?
It would also be good to add a test for each of these formats into /test/examples/src/man/tutorial.md
. I think the easiest thing would be to just create a new type that reads an image file and prints the file's contents the corresponding print method (wouldn't make sense to make Documenter's tests depend on Cairo or something).
I added things to I don't have the time to add other MIME types, all I need for my use-case is the PNG case (for now), so would be great if we could merge that for now. |
Hmm.. the 0.7 failures look related? I'll look into fixing the master 0.7 builds. |
Sorry, I haven't had the time to check why this is failing on 0.7, and it might be a few weeks I get to this. The tests on master are fixed now though, so it has to be something in this PR. But once this is working on 0.7, it would be good to go as far as I am concerned, and we could also tag a release with this in. |
* stringmime(text/plain, x) can be replaced with repr(text/plain, x)
I think test error on 0.7 is JuliaLang/julia@15a345b#r29588023 |
Does that mean the test failures on 0.7 are due to a bug in julia, not this PR? Anything I need to do at this point to get this PR merged? |
Yea I think it is only the Julia bug, I will submit a PR to fix it soon. We can wait until that has propagated to a nightly build and then this should be good to go. |
Seems to pass on |
Yup, the 0.7 targets should go into allowed failures for now. |
The 64-bit Windows nightly binaries are behind at the moment. This should be undone as soon as the binaries are updated again.
Since the nightly win64 binaries are lagging behind, let's put that into allowed failures as well to get a green badge and have this merged. |
I've put it in with a lower priority for now, that seems the save way to introduce this feature.
Fixes #728.