Permalink
Browse files

Added yuidoc

  • Loading branch information...
1 parent aee697b commit 11c89561e4f561606a35637dc1f56648c2757389 @nzakas committed Dec 26, 2011
Showing with 24 additions and 0 deletions.
  1. +3 −0 buildr.properties
  2. +21 −0 macros/yuidoc.xml
View
@@ -38,6 +38,9 @@ buildr.rhino.path = ${buildr.lib.dir}/${buildr.rhino}
buildr.yuicompressor = yuicompressor-2.4.7.jar
buildr.yuicompressor.path = ${buildr.lib.dir}/${buildr.yuicompressor}
+# YUI Doc
+buildr.yuidoc = yuidoc
+
# YUI Test
buildr.yuitest.rhino = yuitest-rhino-cli.js
buildr.yuitest.rhino.path = ${buildr.lib.dir}/${buildr.yuitest.rhino}
View
@@ -0,0 +1,21 @@
+<project name="yuidoc">
+
+ <!-- macro to document files -->
+ <macrodef name="yuidoc">
+
+ <attribute name="outputdir"/>
+ <attribute name="inputdir"/>
+
+ <attribute name="failonerror" default="true" />
+ <element name="files" implicit="true"/>
+
+ <sequential>
+ <echo>Documenting with yuidoc Toolkit</echo>
+ <exec executable="${buildr.yuidoc}" failonerror="@{failonerror}">
+ <arg path="@{inputdir}"/>
+ <arg line="-o" />
+ <arg path="@{outputdir}"/>
+ </exec>
+ </sequential>
+ </macrodef>
+</project>

0 comments on commit 11c8956

Please sign in to comment.