-
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
An option to write at-example outputs to file #2143
Comments
The scenarios that I have seen that are causing issues are primarily the huge SVG images already mentioned, but also GIF animations that are base64 encoded into
A very quick thought, but perhaps derive them from the source filename and keeping an incremental counter for that file is sufficient? |
Not to make this too complicated, but one more option here would be to have a threshold value in bytes, above which we start writing files. And we could make that user-configurable, so
Yep, this seems pretty reasonable. Although, with pretty URLs, we have a whole directory to play with. So an image on |
One complication I discovered when implementing #2247 with Plots.jl: we prioritize the Documenter.jl/src/html/HTMLWriter.jl Lines 2137 to 2138 in ae3a4a8
However, we can't write |
Related to #2142, but one way to manage huge figures is to have a way for HTMLWriter to put them in files. I imagine this probably being either a global HTMLWriter option.. or possibly per-block. Needs some thought on how we want to handle filenames etc.
Also, I think this will be limited to only some MIME types.. and now that I think about it, I am not sure we could use it for
text/html
, since there is no way to actually include it..? It could work for huge SVG images though.cc @bauglir
The text was updated successfully, but these errors were encountered: