Mercurial > hg > truffle
diff mxtool/mx.py @ 5854:2c00c51357d8
added more content to graal.api.meta overview
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 18 Jul 2012 14:38:16 +0200 |
parents | 767312416f6a |
children | c21886d4e125 |
line wrap: on
line diff
--- a/mxtool/mx.py Wed Jul 18 12:17:38 2012 +0200 +++ b/mxtool/mx.py Wed Jul 18 14:38:16 2012 +0200 @@ -2249,6 +2249,7 @@ dot = join(tmpbase, 'all', str(args.dot_output_base) + '.dot') svg = join(tmpbase, 'all', str(args.dot_output_base) + '.svg') jpg = join(tmpbase, 'all', str(args.dot_output_base) + '.jpg') + html = join(tmpbase, 'all', str(args.dot_output_base) + '.html') with open(dot, 'w') as fp: dim = len(projects) print >> fp, 'digraph projects {' @@ -2278,8 +2279,11 @@ with open(svg, 'w') as fp: fp.write(content) + # Create HTML that embeds the svg file in an <object> frame + with open(html, 'w') as fp: + print >> fp, '<html><body><object data="modules.svg" type="image/svg+xml"></object></body></html>' + # Post-process generated overview-summary.html files - def fix_overview_summary(path, topLink): """ Processes an "overview-summary.html" generated by javadoc to put the complete