~ubuntu-branches/ubuntu/hardy/ruby1.8/hardy-updates

« back to all changes in this revision

Viewing changes to lib/rdoc/generators/template/html/one_page_html.rb

  • Committer: Bazaar Package Importer
  • Author(s): akira yamada
  • Date: 2007-03-13 22:11:58 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070313221158-h3oql37brlaf2go2
Tags: 1.8.6-1
* new upstream version, 1.8.6.
* libruby1.8 conflicts with libopenssl-ruby1.8 (< 1.8.6) (closes: #410018)
* changed packaging style to cdbs from dbs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
module RDoc
 
2
module Page
 
3
######################################################################
 
4
#
 
5
# The following is used for the -1 option
 
6
#
 
7
 
 
8
CONTENTS_XML = %{
 
9
IF:description
 
10
%description%
 
11
ENDIF:description
 
12
 
 
13
IF:requires
 
14
<h4>Requires:</h4>
 
15
<ul>
 
16
START:requires
 
17
IF:aref
 
18
<li><a href="%aref%">%name%</a></li>
 
19
ENDIF:aref
 
20
IFNOT:aref
 
21
<li>%name%</li>
 
22
ENDIF:aref 
 
23
END:requires
 
24
</ul>
 
25
ENDIF:requires
 
26
 
 
27
IF:attributes
 
28
<h4>Attributes</h4>
 
29
<table>
 
30
START:attributes
 
31
<tr><td>%name%</td><td>%rw%</td><td>%a_desc%</td></tr>
 
32
END:attributes
 
33
</table>
 
34
ENDIF:attributes
 
35
 
 
36
IF:includes
 
37
<h4>Includes</h4>
 
38
<ul>
 
39
START:includes
 
40
IF:aref
 
41
<li><a href="%aref%">%name%</a></li>
 
42
ENDIF:aref
 
43
IFNOT:aref
 
44
<li>%name%</li>
 
45
ENDIF:aref 
 
46
END:includes
 
47
</ul>
 
48
ENDIF:includes
 
49
 
 
50
IF:method_list
 
51
<h3>Methods</h3>
 
52
START:method_list
 
53
IF:methods
 
54
START:methods
 
55
<h4>%type% %category% method: 
 
56
IF:callseq
 
57
<a name="%aref%">%callseq%</a>
 
58
ENDIF:callseq
 
59
IFNOT:callseq
 
60
<a name="%aref%">%name%%params%</a></h4>
 
61
ENDIF:callseq
 
62
 
 
63
IF:m_desc
 
64
%m_desc%
 
65
ENDIF:m_desc
 
66
 
 
67
IF:sourcecode
 
68
<blockquote><pre>
 
69
%sourcecode%
 
70
</pre></blockquote>
 
71
ENDIF:sourcecode
 
72
END:methods
 
73
ENDIF:methods
 
74
END:method_list
 
75
ENDIF:method_list
 
76
}
 
77
 
 
78
########################################################################
 
79
 
 
80
ONE_PAGE = %{
 
81
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
82
<html>
 
83
<head>
 
84
  <title>%title%</title>
 
85
  <meta http-equiv="Content-Type" content="text/html; charset=%charset%" />
 
86
</head>
 
87
<body>
 
88
START:files
 
89
<h2>File: %short_name%</h2>
 
90
<table>
 
91
  <tr><td>Path:</td><td>%full_path%</td></tr>
 
92
  <tr><td>Modified:</td><td>%dtm_modified%</td></tr>
 
93
</table>
 
94
} + CONTENTS_XML + %{
 
95
END:files
 
96
 
 
97
IF:classes
 
98
<h2>Classes</h2>
 
99
START:classes
 
100
IF:parent
 
101
<h3>%classmod% %full_name% &lt; HREF:par_url:parent:</h3>
 
102
ENDIF:parent
 
103
IFNOT:parent
 
104
<h3>%classmod% %full_name%</h3>
 
105
ENDIF:parent
 
106
 
 
107
IF:infiles
 
108
(in files
 
109
START:infiles
 
110
HREF:full_path_url:full_path:
 
111
END:infiles
 
112
)
 
113
ENDIF:infiles
 
114
} + CONTENTS_XML + %{
 
115
END:classes
 
116
ENDIF:classes
 
117
</body>
 
118
</html>
 
119
}
 
120
 
 
121
end
 
122
end