[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] rdoc: don't generate duplicate diagrams



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@lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas@nussbaum.fr             GPG: 1024D/023B3F4F |



Reply to: