Skip to content

OceananigansDocumentation repo is quite large due to SVGsย #5027

@ali-ramadhan

Description

@ali-ramadhan

The https://github.com/CliMA/OceananigansDocumentation repository is quite large, which is to be expected as it holds the docs for all versions (including figures and animations) going back to v0.4.0 (which many gaps though).

We probably want to keep its size as reasonable as possible because every time the tests run and the docs build, it git clones the docs.

Running the script from https://stackoverflow.com/a/42544963 and looking at the biggest files (over 10 MiB) I'm seeing SVG files with the internal tide SVG being particularly large at ~20 MiB.

I guess the actionable item I'm suggesting here is to produce PNG figures instead of SVG (at least maybe for heatmaps) to reduce file sizes and repo size.

...
7172adb282e9   10MiB v0.44.1/generated/eady_turbulence.gif
613a8d87655b   10MiB v0.44.1/generated/two_dimensional_turbulence/index.html
2dfdd3c467bd   11MiB v0.45.2/generated/eady_turbulence.gif
988bd69f2ab5   13MiB v0.44.1/generated/eady_turbulence/index.html
0ba1083e8897   14MiB v0.45.2/generated/eady_turbulence/index.html
4d9f6e1aec0c   20MiB v0.91.15/literated/internal_tide-38.svg
fe6333d3478d   20MiB v0.94.3/literated/internal_tide-36.svg
c882e8901513   20MiB v0.93.3/literated/internal_tide-36.svg
6b93a38ac7f7   20MiB v0.90.13/literated/internal_tide-40.svg
94c1158e6bae   20MiB v0.95.29/literated/internal_tide-36.svg
3e274ced7bb5   20MiB v0.96.32/literated/internal_tide-36.svg
31bbd9d5df2b   20MiB v0.96.30/literated/internal_tide-36.svg
099b038dbd30   21MiB dev/literated/internal_tide-36.svg
4d8902759121   21MiB v0.96.35/literated/internal_tide-36.svg
fdcdbd1686ed   21MiB previews/PR4811/literated/internal_tide-36.svg
c9b4cecd25a1   21MiB previews/PR4780/literated/internal_tide-36.svg
e21cd6a172e4   21MiB v0.100.6/literated/internal_tide-36.svg

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions