Michael Droettboom schrieb: > That's the one that matplotlib is currently using for its own docs. I > don't know if any new features exist in forks elsewhere -- which is why > it's great that Gael has taken it on to sort all this stuff out. > > http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/doc/sphinxext/inheritance_diagram.py?revision=6863&view=markup > <http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/doc/sphinxext/inheritance_diagram.py?revision=6863&view=markup> > > It has been updated since the last time I mentioned it on the Sphinx > list to put the image files into the build directory -- it basically > follows the pattern used in the Sphinx built-in math extensions (this > was sort of the missing info I couldn't figure out on my own earlier).
Cool! May I take it and include it in Sphinx? I'll have to make a few changes, e.g. convert the directive to a class like all others in 0.6, add a config value for otherwise hardcoded settings, make warnings out of errors etc. Maybe I'll also abstract a bit of the subprocess calling code now that we have this and pngmath sharing it. > One aspect that is not ideal is how it deals with cross-references. The > HTML version produces a clickable image map that links to the > documentation of each class. I manage this by stuffing xfile_ref nodes > in the tree at tree-building time, let Sphinx resolve those > cross-references to real URLs, and then pull them out when the graph > node is later visited. If there's a way to convert a class name to a > URL in a more direct way that I just wasn't able to find, that would > probably be less cumbersome. I'd call that way clever rather than cumbersome - you don't have to duplicate the code from environment.py :) Georg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
