]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/graphviz.mdwn
Merge branch 'master' of git://git.ikiwiki.info
[ikiwiki.git] / doc / todo / graphviz.mdwn
1 How about a plugin providing a
2 [[preprocessor_directive|ikiwiki/directive]] to render a
3 [[!debpkg graphviz]] file as an image via one of the graphviz programs
4 ("dot" by default) and include the resulting image on the page, using the
5 "cmapx" image map format?  graphviz files themselves could also render the
6 same way into an HTML file with the same basename as the graphviz file;
7 format and program could come either from an ikiwiki configuration option
8 or comments/directives in the file.  (For example, "digraph" could imply
9 "dot", and "graph" could imply "neato".)
10
11 To complement this, ikiwiki could support creating and editing graphviz files through the CGI interface, as a new page type; preview could render the file.  It would also help to have some sort of graphviz extension attribute for linking to a wiki page, which would become a standard href or URL attribute in the input passed to the particular graphviz program.
12
13 > Editing graphviz files safely online might be tricky. Graphvis would need
14 > to be audited. --[[Joey]]
15
16 >> I've added a [[graphviz_plugin|plugins/graphviz]] which adds a preprocessor
17 >> directive to render inline graphviz graphs, addressing part of this todo
18 >> item.  It doesn't yet support graphviz files as a separate page type, image
19 >> maps, or wikilinks.--[[JoshTriplett]]