-
Notifications
You must be signed in to change notification settings - Fork 481
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
Add basic support for svg output #233
Conversation
I can confirm this works on a simple case where I added
to
and this even happens when I change
where
For reference, I'm using my branch of Gadfly: GiovineItalia/Gadfly.jl#879 and this pull-request branch. |
What's your |
Actually, it looks like julia> versioninfo()
Julia Version 0.5.0-rc2+0
Commit 0350e57 (2016-08-12 11:25 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin13.4.0)
CPU: Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, haswell) |
Yes, all markdown files are parsed in |
It must be that |
Not without stepping through it all probably. What's the current status of Gadfly's deps for your branch? Should I checkout the |
Most recent tags of everything should work. Also, I just pushed a commit to my branch removing an old markdown file from the previous docs, make sure to grab that version. |
So it looks like it is something |
I'm hitting an
namely, this block:
Error doesn't look quite the same as yours though. |
Btw I was using this diff to see the last diff --git a/src/Expanders.jl b/src/Expanders.jl
index b3f9993..8176f97 100644
--- a/src/Expanders.jl
+++ b/src/Expanders.jl
@@ -424,6 +424,9 @@ end
# --------
function Selectors.runner(::Type{ExampleBlocks}, x, page, doc)
+
+ println(x.code)
+
matched = Utilities.nullmatch(r"^@example[ ]?(.*)$", x.language)
isnull(matched) && error("invalid '@example' syntax: $(x.language)")
# The sandboxed module -- either a new one or a cached one from this page. |
And another
|
These Are Gadfly's tests passing for you? |
Also, I can confirm that when I eliminate the files with breakage, I get beautiful embedded SVGs 👍 |
I'll give that a try shortly. |
Ok, great. Would be nice to get the nice interactive plots too, but for now I'll merge this and add it to the next point release, hopefully to be released in the next few days. |
Interactive plots are nice, but not a necessity. Thanks for looking into this! |
Allow `image/svg+xml` output for `at-example` blocks when the object to be displayed is capable of output the format. Should help with #229, but is not yet a completely general solution.
45576d7
to
61e56be
Compare
Some of the |
Seems like that probably fixes that one, though on |
I appreciate the help, it doesn't look like JuliaLang/julia#18122 made into RC3 because I'm still getting this error on that version. |
No prob. |
Allow
image/svg+xml
output forat-example
blocks when the object to be displayed is capable of output the format. Should help with #229, but is not yet a completely general solution.@tlnagy could you check whether this will work at all for your needs, thanks. Should just need to do
and it should display an embedded
svg
image. I'm not to sure how to get the interactive svg+js plots to work since I'm not familiar with Gadfly though.