Skip to content

Commit 3abb57a

Browse files
authored
Changing arrows color (#14)
Using colorblindness friendly colors
1 parent 731e686 commit 3abb57a

File tree

6 files changed

+16
-24
lines changed

6 files changed

+16
-24
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/README.xml export-ignore
77
/resources export-ignore
88
/docs export-ignore
9+
/guide export-ignore
910

1011
# Configure diff output for .php and .phar files.
1112
*.php diff=php

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
/custom.type.properties
66
/docs/guide.html
77
/build.puml
8+
/guide/VisualizerTask.html

build.png

1.2 KB
Loading

build.xml

+12-22
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,17 @@
77
<target name="qa" description="Check code quality"
88
depends="composer:normalize,composer:validate,phpstan:analyse"/>
99

10-
<target name="visualizer" description="Create buildfile diagram">
11-
<uptodate property="visualizer.uptodate" srcfile="build.xml" targetfile="build.png"/>
12-
<if>
13-
<not>
14-
<isset property="visualizer.uptodate"/>
15-
</not>
16-
<then>
17-
<visualizer format="puml" showTitle="true" showDescription="true"
18-
footer="Visit https://www.phing.info/"/>
19-
<visualizer format="png" showTitle="true" showDescription="true"
20-
footer="Visit https://www.phing.info/"/>
21-
</then>
22-
</if>
10+
<target name="help" description="Create buildfile diagram">
11+
<uptodate property="uptodate.build.xml" srcfile="build.xml" targetfile="build.png"/>
12+
<runtarget target="visualizer"/>
13+
<open path="build.png"/>
2314
</target>
2415

25-
<target name="help" depends="visualizer">
26-
<exec executable="xdg-open" spawn="true">
27-
<arg path="build.png"/>
28-
</exec>
16+
<target name="visualizer" unless="uptodate.build.xml">
17+
<visualizer format="puml" showTitle="true" showDescription="true"
18+
footer="Visit https://www.phing.info/"/>
19+
<visualizer format="png" showTitle="true" showDescription="true"
20+
footer="Visit https://www.phing.info/"/>
2921
</target>
3022

3123
<target name="composer:normalize" description="Normalize composer.json content">
@@ -59,14 +51,12 @@
5951
<!-- I use this Target to have a documentation preview -->
6052
<exec executable="xsltproc" passthru="true" checkreturn="true">
6153
<arg value="--output"/>
62-
<arg value="docs/guide.html"/>
54+
<arg value="guide/VisualizerTask.html"/>
6355
<arg value="--xinclude"/>
6456
<arg file="/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl"/>
65-
<arg file="docs/guide.xml"/>
66-
</exec>
67-
<exec executable="xdg-open" spawn="true">
68-
<arg value="docs/guide.html"/>
57+
<arg file="guide/VisualizerTask.xml"/>
6958
</exec>
59+
<open path="guide/VisualizerTask.html"/>
7060
</target>
7161

7262
</project>
File renamed without changes.

src/calls.xsl

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extension-element-prefixes="str">
1111
<xsl:for-each select="./target">
1212
<xsl:variable name="current-target" select="@name"/>
1313
<xsl:for-each select=".//phingcall | .//foreach | .//runtarget">
14-
(<xsl:value-of select="$current-target"/>) -[#EC87C0]-> (<xsl:value-of select="@target"/>) : call:<xsl:value-of
14+
(<xsl:value-of select="$current-target"/>) -[#D41159]-> (<xsl:value-of select="@target"/>) : call:<xsl:value-of
1515
select="position()"/>
1616
</xsl:for-each>
1717
<xsl:if test="@depends">
@@ -29,7 +29,7 @@ select="position()"/>
2929
<xsl:param name="depends"/>
3030
<xsl:variable name="targets" select="str:split($depends, ',')"/>
3131
<xsl:for-each select="$targets">
32-
(<xsl:value-of select="$from"/>) -[#5D9CEC]-> (<xsl:value-of select="normalize-space(text())"/>) : depend:<xsl:value-of
32+
(<xsl:value-of select="$from"/>) -[#1A85FF]-> (<xsl:value-of select="normalize-space(text())"/>) : depend:<xsl:value-of
3333
select="position()"/>
3434
</xsl:for-each>
3535
</xsl:template>

0 commit comments

Comments
 (0)