Line | |
---|
1 | module RDoc
|
---|
2 | module Page
|
---|
3 |
|
---|
4 |
|
---|
5 |
|
---|
6 | CONTENTS_XML = %{
|
---|
7 | IF:description
|
---|
8 | <description>
|
---|
9 | %description%
|
---|
10 | </description>
|
---|
11 | ENDIF:description
|
---|
12 | <contents>
|
---|
13 | IF:requires
|
---|
14 | <required-file-list>
|
---|
15 | START:requires
|
---|
16 | <required-file name="%name%"
|
---|
17 | IF:aref
|
---|
18 | href="%aref%"
|
---|
19 | ENDIF:aref
|
---|
20 | />
|
---|
21 | END:requires
|
---|
22 | </required-file-list>
|
---|
23 | ENDIF:requires
|
---|
24 | IF:attributes
|
---|
25 | <attribute-list>
|
---|
26 | START:attributes
|
---|
27 | <attribute name="%name%">
|
---|
28 | IF:rw
|
---|
29 | <attribute-rw>%rw%</attribute-rw>
|
---|
30 | ENDIF:rw
|
---|
31 | <description>%a_desc%</description>
|
---|
32 | </attribute>
|
---|
33 | END:attributes
|
---|
34 | </attribute-list>
|
---|
35 | ENDIF:attributes
|
---|
36 | IF:includes
|
---|
37 | <included-module-list>
|
---|
38 | START:includes
|
---|
39 | <included-module name="%name%"
|
---|
40 | IF:aref
|
---|
41 | href="%aref%"
|
---|
42 | ENDIF:aref
|
---|
43 | />
|
---|
44 | END:includes
|
---|
45 | </included-module-list>
|
---|
46 | ENDIF:includes
|
---|
47 | IF:method_list
|
---|
48 | <method-list>
|
---|
49 | START:method_list
|
---|
50 | IF:methods
|
---|
51 | START:methods
|
---|
52 | <method name="%name%" type="%type%" category="%category%" id="%aref%">
|
---|
53 | <parameters>%params%</parameters>
|
---|
54 | IF:m_desc
|
---|
55 | <description>
|
---|
56 | %m_desc%
|
---|
57 | </description>
|
---|
58 | ENDIF:m_desc
|
---|
59 | IF:sourcecode
|
---|
60 | <source-code-listing>
|
---|
61 | %sourcecode%
|
---|
62 | </source-code-listing>
|
---|
63 | ENDIF:sourcecode
|
---|
64 | </method>
|
---|
65 | END:methods
|
---|
66 | ENDIF:methods
|
---|
67 | END:method_list
|
---|
68 | </method-list>
|
---|
69 | ENDIF:method_list
|
---|
70 | </contents>
|
---|
71 | }
|
---|
72 |
|
---|
73 | ########################################################################
|
---|
74 |
|
---|
75 | ONE_PAGE = %{<?xml version="1.0" encoding="utf-8"?>
|
---|
76 | <rdoc>
|
---|
77 | <file-list>
|
---|
78 | START:files
|
---|
79 | <file name="%short_name%" id="%href%">
|
---|
80 | <file-info>
|
---|
81 | <path>%full_path%</path>
|
---|
82 | <dtm-modified>%dtm_modified%</dtm-modified>
|
---|
83 | </file-info>
|
---|
84 | } + CONTENTS_XML + %{
|
---|
85 | </file>
|
---|
86 | END:files
|
---|
87 | </file-list>
|
---|
88 | <class-module-list>
|
---|
89 | START:classes
|
---|
90 | <%classmod% name="%full_name%" id="%full_name%">
|
---|
91 | <classmod-info>
|
---|
92 | IF:infiles
|
---|
93 | <infiles>
|
---|
94 | START:infiles
|
---|
95 | <infile>HREF:full_path_url:full_path:</infile>
|
---|
96 | END:infiles
|
---|
97 | </infiles>
|
---|
98 | ENDIF:infiles
|
---|
99 | IF:parent
|
---|
100 | <superclass>HREF:par_url:parent:</superclass>
|
---|
101 | ENDIF:parent
|
---|
102 | </classmod-info>
|
---|
103 | } + CONTENTS_XML + %{
|
---|
104 | </%classmod%>
|
---|
105 | END:classes
|
---|
106 | </class-module-list>
|
---|
107 | </rdoc>
|
---|
108 | }
|
---|
109 |
|
---|
110 |
|
---|
111 | end
|
---|
112 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.