-
Notifications
You must be signed in to change notification settings - Fork 483
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
Reduce search_index.js
file size ?
#2606
Comments
Any ideas why it's that large? The Julia manual's index is the largest I know of and it's less than 1 MiB. I suspect some sort of auto-generated content is getting included..? |
There definitively is some auto-generated content. We have a "fix" in order to reduce added search content: https://github.com/JuliaPlots/Plots.jl/blob/v2/docs/make.jl#L32-L65 (related to JuliaPlots/Plots.jl#4157), but it should be unrelated. Here is the dev version, around 99Mb: https://github.com/JuliaPlots/PlotDocs.jl/blob/gh-pages/dev/search_index.js. The previous stable version for This coincides with the breaking release of Documenter 1.0 if I recall. |
Quickly looking through the 99 MiB one, I see heaps of SVG data in there. Documenter shouldn't be adding that, so I think it's something specific to the Plots repo that is adding it. I'd suggest trying to reduce this to an MWE, to see how it's ending up in the index. |
As a sidenote, perhaps this file can be gzipped? docs.julialang.org goes from 4.1M to 950K (and the plots one from 99M to 16M). |
Yeah, it seems that the image such as the one in this exemple lands in the
Good idea ! |
I've been able to reduce the file size to ~19Mb with our updated fix https://github.com/JuliaPlots/Plots.jl/blob/v2/docs/make.jl#L35-L68, which was out of sync with So the stable docs for Still, being able to remove the images from the search index might be our best bet. |
How can I reduce
search_index.js
file size ?The
gh-pages
limit is 100Mb, and I'm hitting this limit e.g. https://github.com/JuliaPlots/Plots.jl/actions/runs/11794903812/job/32859378612#step:5:27591.The text was updated successfully, but these errors were encountered: