Skip to content

Commit

Permalink
Changing arrows color (#14)
Browse files Browse the repository at this point in the history
Using colorblindness friendly colors
  • Loading branch information
jawira authored Aug 31, 2021
1 parent 731e686 commit 3abb57a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 24 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/README.xml export-ignore
/resources export-ignore
/docs export-ignore
/guide export-ignore

# Configure diff output for .php and .phar files.
*.php diff=php
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/custom.type.properties
/docs/guide.html
/build.puml
/guide/VisualizerTask.html
Binary file modified build.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 12 additions & 22 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,17 @@
<target name="qa" description="Check code quality"
depends="composer:normalize,composer:validate,phpstan:analyse"/>

<target name="visualizer" description="Create buildfile diagram">
<uptodate property="visualizer.uptodate" srcfile="build.xml" targetfile="build.png"/>
<if>
<not>
<isset property="visualizer.uptodate"/>
</not>
<then>
<visualizer format="puml" showTitle="true" showDescription="true"
footer="Visit https://www.phing.info/"/>
<visualizer format="png" showTitle="true" showDescription="true"
footer="Visit https://www.phing.info/"/>
</then>
</if>
<target name="help" description="Create buildfile diagram">
<uptodate property="uptodate.build.xml" srcfile="build.xml" targetfile="build.png"/>
<runtarget target="visualizer"/>
<open path="build.png"/>
</target>

<target name="help" depends="visualizer">
<exec executable="xdg-open" spawn="true">
<arg path="build.png"/>
</exec>
<target name="visualizer" unless="uptodate.build.xml">
<visualizer format="puml" showTitle="true" showDescription="true"
footer="Visit https://www.phing.info/"/>
<visualizer format="png" showTitle="true" showDescription="true"
footer="Visit https://www.phing.info/"/>
</target>

<target name="composer:normalize" description="Normalize composer.json content">
Expand Down Expand Up @@ -59,14 +51,12 @@
<!-- I use this Target to have a documentation preview -->
<exec executable="xsltproc" passthru="true" checkreturn="true">
<arg value="--output"/>
<arg value="docs/guide.html"/>
<arg value="guide/VisualizerTask.html"/>
<arg value="--xinclude"/>
<arg file="/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl"/>
<arg file="docs/guide.xml"/>
</exec>
<exec executable="xdg-open" spawn="true">
<arg value="docs/guide.html"/>
<arg file="guide/VisualizerTask.xml"/>
</exec>
<open path="guide/VisualizerTask.html"/>
</target>

</project>
File renamed without changes.
4 changes: 2 additions & 2 deletions src/calls.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extension-element-prefixes="str">
<xsl:for-each select="./target">
<xsl:variable name="current-target" select="@name"/>
<xsl:for-each select=".//phingcall | .//foreach | .//runtarget">
(<xsl:value-of select="$current-target"/>) -[#EC87C0]-> (<xsl:value-of select="@target"/>) : call:<xsl:value-of
(<xsl:value-of select="$current-target"/>) -[#D41159]-> (<xsl:value-of select="@target"/>) : call:<xsl:value-of
select="position()"/>
</xsl:for-each>
<xsl:if test="@depends">
Expand All @@ -29,7 +29,7 @@ select="position()"/>
<xsl:param name="depends"/>
<xsl:variable name="targets" select="str:split($depends, ',')"/>
<xsl:for-each select="$targets">
(<xsl:value-of select="$from"/>) -[#5D9CEC]-> (<xsl:value-of select="normalize-space(text())"/>) : depend:<xsl:value-of
(<xsl:value-of select="$from"/>) -[#1A85FF]-> (<xsl:value-of select="normalize-space(text())"/>) : depend:<xsl:value-of
select="position()"/>
</xsl:for-each>
</xsl:template>
Expand Down

0 comments on commit 3abb57a

Please sign in to comment.