From dca8960e21273ed8100fa1fdaeab99ccf141a1f3 Mon Sep 17 00:00:00 2001
From: mikl <>
Date: Tue, 6 May 2008 07:53:08 +0000
Subject: Imported JS documentor jGrouseDoc-2.0
---
.../jGrouseDoc/skins/noframes/vm/antgen.vm | 77 ++++++++++++++++++
.../jGrouseDoc/skins/noframes/vm/detail.vm | 94 ++++++++++++++++++++++
.../jGrouseDoc/skins/noframes/vm/jsindex.vm | 57 +++++++++++++
buildscripts/jGrouseDoc/skins/noframes/vm/test.vm | 1 +
4 files changed, 229 insertions(+)
create mode 100644 buildscripts/jGrouseDoc/skins/noframes/vm/antgen.vm
create mode 100644 buildscripts/jGrouseDoc/skins/noframes/vm/detail.vm
create mode 100644 buildscripts/jGrouseDoc/skins/noframes/vm/jsindex.vm
create mode 100644 buildscripts/jGrouseDoc/skins/noframes/vm/test.vm
(limited to 'buildscripts/jGrouseDoc/skins/noframes/vm')
diff --git a/buildscripts/jGrouseDoc/skins/noframes/vm/antgen.vm b/buildscripts/jGrouseDoc/skins/noframes/vm/antgen.vm
new file mode 100644
index 00000000..7ed8671f
--- /dev/null
+++ b/buildscripts/jGrouseDoc/skins/noframes/vm/antgen.vm
@@ -0,0 +1,77 @@
+#if ($jg.project.comment.name)
+ #set($projectName=$jg.project.comment.name.trim())
+#end
+#if ($jg.project.comment.version.size() > 0)
+ #set ($version = $jg.project.comment.version.get(0).content.originalString.trim())
+#end
+#if ($jg.project.comment.description.size() > 0)
+ #set ($projectDesc = $jg.project.comment.description.get(0).content.originalString.trim())
+#end
+#macro (genSummary $coll $pathPart $section)
+ #foreach($le in $coll)
+
+
+ #end
+#end
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #genSummary($jg.logical "logical" "logical")
+ #genSummary($jg.files "physical" "file")
+ #genSummary($jg.modules "physical" "module")
+
+
+
+
diff --git a/buildscripts/jGrouseDoc/skins/noframes/vm/detail.vm b/buildscripts/jGrouseDoc/skins/noframes/vm/detail.vm
new file mode 100644
index 00000000..8cb95d88
--- /dev/null
+++ b/buildscripts/jGrouseDoc/skins/noframes/vm/detail.vm
@@ -0,0 +1,94 @@
+#if ($jg.get($objectName)) #set ($obj = $jg.get($objectName)) #end
+
+
+
+ $projectName
+
+
+
+
+
+ #if ($aux_css)
+
+ #end
+
+
+
+
+
+
+
+
+ version $version
+
+
+
+ #navigationPane($navSection)
+
+
+
+
+
diff --git a/buildscripts/jGrouseDoc/skins/noframes/vm/jsindex.vm b/buildscripts/jGrouseDoc/skins/noframes/vm/jsindex.vm
new file mode 100644
index 00000000..9f1496a0
--- /dev/null
+++ b/buildscripts/jGrouseDoc/skins/noframes/vm/jsindex.vm
@@ -0,0 +1,57 @@
+#macro (writeFunctionJSParams $paramSet)
+#foreach($param in $paramSet.params)#if($velocityCount > 1), #end#if($param.hasModifier('optional'))[#end#if($param.typeLink)$param.typeLink.originalString.trim() #end$param.name#if($param.hasModifier('optional'))]#end#end
+#end
+
+#macro(writeFuncJSSummary $func)
+#set ($funcModifiers = $func.comment.modifiers)
+#if ($func.comment.inheritdesc.size() == 0)
+#set ($funcItself = $func)
+#else
+#set ($funcItself = $jg.get($func.comment.inheritdesc.get(0).name))
+#end
+#if($funcModifiers.length() > 0)$funcModifiers #end$func.commentType #if ($funcItself.comment.paramSets.size() != 0)#foreach($paramSet in $funcItself.comment.paramSets)#if ($velocityCount > 1)\n#end#if($funcItself.comment.typeLink)$funcItself.comment.typeLink.originalString #end${func.localName}(#writeFunctionJSParams($paramSet))#end
+#else
+#if($funcItself.comment.typeLink)$funcItself.comment.typeLink.originalString #end${funcItself.localName}()#end
+#end
+
+
+#macro(writeVarJSSummary $var)
+#set ($varModifiers = $var.comment.modifiers)
+#if ($var.comment.inheritdesc.size() == 0)
+#set ($varItself = $var)
+#else
+#set ($varItself = $jg.get($var.comment.inheritdesc.get(0).name))
+#end
+#if($varModifiers.length() > 0)$varModifiers #end$var.commentType #if($varItself.comment.typeLink)$varItself.comment.typeLink.originalString #end${varItself.localName}#end
+
+#macro(writeContainerJSSummary $cont)
+#if($cont.comment.modifiers.length() > 0)$cont.comment.modifiers #end$cont.commentType $cont.localName#end
+#macro(writeJSSummary $obj)
+#if ($obj.commentType == "variable" || $obj.commentType == "property")#writeVarJSSummary($obj)
+#elseif($obj.commentType == "class" || $obj.commentType == "namespace" || $obj.commentType == "struct" || $obj.commentType == "interface" || $obj.commentType == "object")#writeContainerJSSummary($obj)
+#elseif($obj.commentType == "function" || $obj.commentType == "constructor" || $obj.commentType == "ifunction" || $obj.commentType == "event")#writeFuncJSSummary($obj)#end
+#end
+
+#macro(writeJS $item)
+
+ {
+ localName : "$item.localName",
+ fullName : "$item.fullName",
+ summary : "#writeJSSummary($item)",
+ ref : "#writeLink($item.fullName)",
+ parent : "#if($item.parentName)$item.parentName#end",
+ type : "$item.commentType",
+ elementType : "$item.elementType"
+ }#end
+
+
+
+/*Generated by jGrouseDoc*/
+(function()
+{
+ var data = [#foreach($item in $jg.all())#if($item.commentType != 'file' && $item.commentType != 'module')#if($velocityCount > 1), #end #writeJS($item) #end#end
+ ];
+ jgdoc.setData(data);
+
+})()
+
diff --git a/buildscripts/jGrouseDoc/skins/noframes/vm/test.vm b/buildscripts/jGrouseDoc/skins/noframes/vm/test.vm
new file mode 100644
index 00000000..bde0e031
--- /dev/null
+++ b/buildscripts/jGrouseDoc/skins/noframes/vm/test.vm
@@ -0,0 +1 @@
+$jg.get("_bla").comment.returnsTag
\ No newline at end of file
--
cgit v1.2.3