From e48db30f05b51b5d918dd92842a5784e4ec5b50f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 1 Aug 2010 16:51:20 -0400 Subject: [PATCH] genrst calls xsltproc to generate gui_flow.svg. Unfortunately, Sphinx doesn't seem to recognize that gui_flow.xml will turn into gui_flow.svg after graph.xsl's transformation (but perhaps I'm just doing something wrong?). We work around that by running the transformation and linking hacking.txt to the generated svg file instead of the source xml. Of course, this adds an additional build dependency (xsltproc), but xslt processors should be common enough that that's not a big deal. The change was made in the scons cache file doc/.sconsrc-sphinx. I also added the generated file (doc/img/gui_flow/gui_flow.svg) to .hgignore. --- .hgignore | 1 + doc/.sconsrc-sphinx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.hgignore b/.hgignore index fa29da7..fe04478 100644 --- a/.hgignore +++ b/.hgignore @@ -7,4 +7,5 @@ build/ .hooke.cfg doc/.sconsign.dblite +doc/img/gui_flow/gui_flow.svg hooke/license.py diff --git a/doc/.sconsrc-sphinx b/doc/.sconsrc-sphinx index bb1926a..9086db5 100644 --- a/doc/.sconsrc-sphinx +++ b/doc/.sconsrc-sphinx @@ -1 +1 @@ -genrst = 'python generate-hooke-txt.py' +genrst = 'python generate-hooke-txt.py && xsltproc img/gui_flow/graph.xsl img/gui_flow/gui_flow.xml > img/gui_flow/gui_flow.svg' -- 2.26.2