forked from oyvindkinsey/easyXDM
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docs.xml
61 lines (45 loc) · 2.01 KB
/
docs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<!--
Source section (required)
Use <source> to specify directory with JavaScript source files to be
processed or just one JS file. Directories are processed recursively.
Attributes:
src: (required) - source directory name or file name
match: (optional) - wildcard for the files. Default: "*.js"
skipHidden: (optional) - True to skip processing files and
directories with hidden attribute.
Default: true.
Custom tags section(optional)
Tags to be added to the list of custom tags, for every
"documantable item" i.e. class, cfg, property, event.
Custom tag list is accessible in XSLT-template and has two
properties: title and value.
name: (required) tag name. ex: "author" => "@author"
title: (optional) title of custom tag
format: (optional) pattern string used for formatting value
Usage example:
XML: <tag name="author" title="Author"/>
JS: /**
* @class MyClass
* @author I'm the
* author
*/
XSLT:
<xsl:if test="customTags">
<b><xsl:value-of select="customTags/title"/></b> :
<xsl:value-of select="customTags/value"/>
</xsl:if>
Resulting HTML:
<b>Author</b>:I'm the author
-->
<sources>
<source src="src/" match="*.js"/>
</sources>
<tags>
<tag name="author" title="Author"/>
<tag name="version" title="Version"/>
<tag name="note" format="<i>NOTE: {0}</i>"/>
<tag name="demo" title="Demo" format="<a href="{0}">{0}</a>" />
</tags>
</doc>