Skip to content

Commit 450674e

Browse files
committed
Updated docu
docu updated to shortsn/docu fork, with .NET 4.0 support
1 parent 6302b20 commit 450674e

File tree

13 files changed

+117
-50
lines changed

13 files changed

+117
-50
lines changed

tools/docu/Spark.dll

313 KB
Binary file not shown.

tools/docu/docu.exe

-564 KB
Binary file not shown.

tools/docu/docu.pdb

-232 KB
Binary file not shown.

tools/docu/templates/!namespace/!type.htm.spark

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
33
<head>
44
<title>${h(Type.PrettyName)} - ${WriteProductName(Assemblies[0])} Documentation</title>
5-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
66
<link type="text/css" rel="stylesheet" href="../main.css" />
77
<script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
88
<script type="text/javascript" src="../js/jquery.scrollTo-min.js"></script>
99
<script type="text/javascript" src="../js/navigation.js"></script>
10+
<script type="text/javascript" src="../js/example.js"></script>
1011
</head>
1112
<body>
1213
<namespaces />
@@ -22,23 +23,42 @@
2223
<div id="summary">
2324
<comment content="Type.Summary" />
2425
<remarks content="Type.Remarks" />
26+
<example content="Type.Example" />
27+
</div>
28+
</if>
29+
<if condition="Type.IsObsolete">
30+
<div id="warning">
31+
<b>Obsolete:</b> ${Type.ObsoleteReason}
2532
</div>
2633
</if>
2734

28-
<if condition="Type.Events.Count > 0">
29-
<h3 class="section">Events</h3>
35+
<if condition="Type.Methods.Where(x => x.IsConstructor).Count() > 0">
36+
<h3 class="section">Constructors</h3>
3037
<ul>
31-
<li each="var ev in Type.Events">${Format(ev)}</li>
38+
<li each="var method in Type.Methods.Where(x => x.IsConstructor)">${Format(method)}</li>
3239
</ul>
3340
</if>
34-
35-
<if condition="Type.Methods.Count > 0">
41+
42+
<if condition="Type.Methods.Where(x => !x.IsConstructor && x.IsStatic).Count() > 0">
43+
<h3 class="section">Static Functions</h3>
44+
<ul>
45+
<li each="var method in Type.Methods.Where(x => !x.IsConstructor && x.IsStatic)">${Format(method)}</li>
46+
</ul>
47+
</if>
48+
<if condition="!Type.IsStatic && Type.Methods.Where(x => !x.IsConstructor && !x.IsStatic).Count() > 0">
3649
<h3 class="section">Methods</h3>
3750
<ul>
38-
<li each="var method in Type.Methods">${Format(method)}</li>
51+
<li each="var method in Type.Methods.Where(x => !x.IsConstructor && !x.IsStatic)">${Format(method)}</li>
3952
</ul>
4053
</if>
4154

55+
<if condition="Type.Events.Count > 0">
56+
<h3 class="section">Events</h3>
57+
<ul>
58+
<li each="var ev in Type.Events">${Format(ev)}</li>
59+
</ul>
60+
</if>
61+
4262
<if condition="Type.Properties.Count > 0">
4363
<h3 class="section">Properties</h3>
4464
<ul>
@@ -56,13 +76,18 @@
5676

5777
<events events="Type.Events" title="'Events'" />
5878

59-
<var publicInstanceMethods="Type.Methods.Where(x => x.IsPublic && !x.IsStatic)" />
60-
<methods methods="publicInstanceMethods" title="'Public instance methods'" />
79+
<var publicConstructors="Type.Methods.Where(x => x.IsPublic && x.IsConstructor)" />
80+
<methods methods="publicConstructors" title="'Public Constructors'" />
6181

6282
<var publicStaticMethods="Type.Methods.Where(x => x.IsPublic && x.IsStatic)" />
63-
<methods methods="publicStaticMethods" title="'Public static methods'" />
83+
<methods methods="publicStaticMethods" title="'Public Static Functions'" />
84+
85+
<if condition="!Type.IsStatic">
86+
<var publicInstanceMethods="Type.Methods.Where(x => x.IsPublic && !x.IsStatic && !x.IsConstructor)" />
87+
<methods methods="publicInstanceMethods" title="'Public Methods'" />
88+
</if>
6489

65-
<properties properties="Type.Properties" title="'Public properties'" />
90+
<properties properties="Type.Properties" title="'Public Properties'" />
6691
<fields fields="Type.Fields" title="'Public fields'" />
6792

6893
<use file="../_footer" />

tools/docu/templates/!namespace/_events.spark

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<div class="content">
77
<comment content="ev.Summary" />
88
<remarks content="ev.Remarks" />
9+
<example content="ev.Example" />
910
</div>
1011
</div>
1112
</if>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div class="example" if="content != null && content.Children.Count() > 0">
2+
<a href="javascript:void(0)">Show Example</a>
3+
<pre>${Format(content)}</pre>
4+
</div>

tools/docu/templates/!namespace/_fields.spark

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
</td>
1414
</tr>
1515
</table>
16+
<example content="field.Example" />
1617
</div>
1718
</div>
1819
</if>

tools/docu/templates/!namespace/_methods.spark

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@
66
<div class="content">
77
<comment content="method.Summary" />
88
<remarks content="method.Remarks" />
9+
<if condition="method.IsObsolete">
10+
<div id="warning">
11+
<b>Obsolete:</b> ${method.ObsoleteReason}
12+
</div>
13+
</if>
914

10-
<var hasReturn="method.ReturnType.PrettyName != 'void'" />
15+
<var hasReturn="method.ReturnType != null && method.ReturnType.PrettyName != 'void'" />
1116
<var hasParams="method.Parameters.Any(x => x.HasDocumentation)" />
1217

1318
<div class="parameters" if="hasParams">
@@ -26,6 +31,7 @@
2631
</div>
2732

2833
<value content="method.Value" />
29-
</div>
34+
<example content="method.Example" />
35+
</div>
3036
</div>
3137
</if>

tools/docu/templates/!namespace/_properties.spark

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@
66
<div class="content">
77
<comment content="property.Summary" />
88
<remarks content="property.Remarks" />
9+
<if condition="property.IsObsolete">
10+
<div id="warning">
11+
<b>Obsolete:</b> ${property.ObsoleteReason}
12+
</div>
13+
</if>
914

1015
<div class="return" if="property.ReturnType.HasDocumentation">
1116
<h5>Property type</h5>
1217
<h6><code>${Format(property.ReturnType)}</code></h6>
1318
<p><comment content="property.ReturnType.Summary" /></p>
1419
</div>
1520
<value content="property.Value" />
21+
<example content="property.Example" />
1622
</div>
1723
</div>
1824
</if>

tools/docu/templates/!namespace/index.htm.spark

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
33
<head>
44
<title>${Namespace.Name} - ${WriteProductName(Assemblies[0])} Documentation</title>
5-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
66
<link type="text/css" rel="stylesheet" href="../main.css" />
77
<script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
88
<script type="text/javascript" src="../js/jquery.scrollTo-min.js"></script>

0 commit comments

Comments
 (0)