[Pkg-ruby-extras-maintainers] [PATCH] rdoc: don't generate
duplicate diagrams
Lucas Nussbaum
lucas at lucas-nussbaum.net
Thu Nov 24 21:58:46 UTC 2005
Hi,
Diagrams generated by rdoc often use a lot of disk space. One of the
reasons is that rdoc generates a lot of very similar diagrams : only the
label (the filename, or the module name) changes.
This simple patch[1] adds a "diagram cache" to rdoc's diagram.rb. It
checks if the same graph has already been generated in convert_to_png().
[1] http://ox.blop.info/bazaar/diagram.rb.diff
To make this possible:
- the patch removes the "label" from the graph
- the patch removes the "alt" attribute of the <img> tag in the
generated HTML.
Can this patch be integrated into rdoc ?
Thank you,
--
| Lucas Nussbaum
| lucas at lucas-nussbaum.net http://www.lucas-nussbaum.net/ |
| jabber: lucas at nussbaum.fr GPG: 1024D/023B3F4F |
More information about the pkg-ruby-extras-maintainers
mailing list