-
Notifications
You must be signed in to change notification settings - Fork 251
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
get docs to build again #1283
get docs to build again #1283
Conversation
Just a guess here: since v0.22, Documenter renders a bunch of |
Project.toml
Outdated
test = ["CSV", "Cairo", "DataFrames", "RDatasets", "Test", "Unitful"] |
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.
As I understand it, for the line_linestyle test script you could have moved StatsBase into [extras]
and [targets]
, and the docs will build as long as StatsBase is not in [deps]
and [compat]
. However, I'm ok with removing StatsBase in the line_linestyle testscript, because it simplifies things.
i'm inclined to remove the entire compat section in Project.toml. thoughts? @non-Jedi ?? my thinking is that we don't know those are the true minimum versions that will work, so there's no sense being restrictive. as we discover that certain versions aren't compatible, we can add them back in. it would be a huge chore to go determine that for each of the dependencies. |
@mortenpi indeed. those methods are replaced once Cairo is dynamically loaded by Requires. perhaps it's not worth the trouble of getting rid of those however, i did have another question for you: is there a way to force PNG output, or SVG, instead of SVGJS? this page takes a long time to load because of the embedded javascript. |
Re PNG ouput: same issue in GiovineItalia/Compose.jl#228, Re: |
The easy option is probably to just have the But I do wonder now: does it make sense to define
There is no way to do it in Documenter (although maybe we could have it be an option for the at-blocks), but here is an idea for a workaround: mortenpi@d6bc52e |
Hmm, a custom |
I mean it's ultimately your call to make. If you don't put that section in, you're basically trusting the packages in question to maintain compatibility forever. Any release you do without a My personal opinion is that a lot of the dependencies of Gadfly that are currently pre-1.0 should just release a 1.0 version so that we can actually abide by the guarantees of semver, which would make this problem mostly go away, but that's not something you or I have any control over. |
Codecov Report
@@ Coverage Diff @@
## master #1283 +/- ##
==========================================
- Coverage 85.83% 85.81% -0.03%
==========================================
Files 36 36
Lines 4158 4158
==========================================
- Hits 3569 3568 -1
- Misses 589 590 +1
Continue to review full report at Codecov.
|
Project.toml
Outdated
DataFrames = "0.17" | ||
RDatasets = "0.6" | ||
Unitful = "0.15" | ||
# known to work for these, but as it's not an exhaustive list, don't forcefully restrict |
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 what it's worth, if you're going to get rid of the compat section but still want to document versions of packages that work, I'd delete all this and just go ahead and commit a Manifest.toml. That's what that file is for after all.
ae8aa5b
to
d95eb22
Compare
how about putting the compat section back in, but removing the upper bounds on the versions for all dependencies whose major version is 0. it's easier i think to fix errors when the plotting code runs, than it is to debug installation problems. CSV 0.5 doesn't work for Gadfly because it doesn't work for RDatasets. see JuliaStats/RDatasets.jl#69 some dependency of KernelDensity must be incompatible with Distributions 0.19 because adding the former downgrades the latter to 0.18. oh but wait. now installing on julia 7 fails. and if i take out the [compat] section entirely, it still fails. can anyone get Gadfly master to install on julia 7? |
ok, master mysteriously works on julia 7 now. not sure why it didn't before. but... this PR does not. |
@mortenpi if i understand what you're saying about however, if i understand Documenter correctly, it shows all showable MIME types, despite just choosing one in the end to actually include in the built docs. is the thinking that this is useful because it adds to the test suite? if so, i'm inclined to not try to circumvent that. |
Yep. Although in that case if a user does do e.g.
Testing was not the motivation, although now that you mention it, it is indeed a side-effect. The main reason is that different backends prefer different MIMEs (e.g. HTML likes |
fixes #1282
squash
'ed orfixup
'ed junk commits with git-rebasedocumentation now builds again without errors. i removed the dependency on StatsBase, which changed one unit test in a small way. i also removed some unnecessary
using Colors
while at it. upgraded to Documenter 0.22. and fixed some formatting in the docs.@mortenpi could you please explain why in
docs/make.jl
i have tousing Compose, Cairo
? even whenpages = Any[]
, i still have tousing
these or i get errors about them being needed to saveimage/png
.