Replying to jdemeyer:

Too bad that I missed this ticket earlier. This should have been an 8.3 blocker.

By the way, that 20GB figure is not really how much disk space is being taken up. There is a bug (I have no idea where this comes from) that puts a "mathjax" directory in each `_static`

, which is a hard link to the mathjax sources (i.e. under `$SAGE_LOCAL/share/mathjax`

). This inexplicably contains a symlink to itself as `$SAGE_LOCAL/share/mathjax/mathjax`

. In the `_static`

directories, however, this symlink is being dereferenced and converted to a hard link as well, so you end up with an infinite loop of hardlinks, which tools like `du`

don't handle well when counting (the size it's reporting is probably just being limited by some max depth parameter).

If I delete all those nonsense `mathjax`

hardlinks I then get:

$ du -sh local/share/doc/sage/html/
779M local/share/doc/sage/html/

and

$ du -sh local/share/doc/sage/
2.0G local/share/doc/sage/

so I think it's not all as bad as it seems.