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