38 }} |
38 }} |
39 |
39 |
40 a {{ |
40 a {{ |
41 color: {LinkColor}; |
41 color: {LinkColor}; |
42 }} |
42 }} |
43 ''' |
43 """ |
44 |
44 |
45 ################################################# |
45 ################################################# |
46 ## Common templates for index and docu files ## |
46 ## Common templates for index and docu files ## |
47 ################################################# |
47 ################################################# |
48 |
48 |
49 headerTemplate = '''<!DOCTYPE html> |
49 headerTemplate = """<!DOCTYPE html> |
50 <html><head> |
50 <html><head> |
51 <title>{Title}</title> |
51 <title>{Title}</title> |
52 <meta charset="UTF-8"> |
52 <meta charset="UTF-8"> |
53 <link rel="stylesheet" href="styles.css"> |
53 <link rel="stylesheet" href="styles.css"> |
54 </head> |
54 </head> |
55 <body>''' |
55 <body>""" |
56 |
56 |
57 footerTemplate = ''' |
57 footerTemplate = """ |
58 </body></html>''' |
58 </body></html>""" |
59 |
59 |
60 ######################################### |
60 ######################################### |
61 ## Templates for documentation files ## |
61 ## Templates for documentation files ## |
62 ######################################### |
62 ######################################### |
63 |
63 |
64 moduleTemplate = ''' |
64 moduleTemplate = """ |
65 <a NAME="top" ID="top"></a> |
65 <a NAME="top" ID="top"></a> |
66 <h1>{Module}</h1> |
66 <h1>{Module}</h1> |
67 {ModuleDescription} |
67 {ModuleDescription} |
68 <h3>Global Attributes</h3> |
68 <h3>Global Attributes</h3> |
69 {GlobalsList} |
69 {GlobalsList} |
70 <h3>Classes</h3> |
70 <h3>Classes</h3> |
71 {ClassList} |
71 {ClassList} |
72 <h3>Functions</h3> |
72 <h3>Functions</h3> |
73 {FunctionList} |
73 {FunctionList} |
74 <hr />''' |
74 <hr />""" |
75 |
75 |
76 rbFileTemplate = ''' |
76 rbFileTemplate = """ |
77 <a NAME="top" ID="top"></a> |
77 <a NAME="top" ID="top"></a> |
78 <h1>{Module}</h1> |
78 <h1>{Module}</h1> |
79 {ModuleDescription} |
79 {ModuleDescription} |
80 <h3>Global Attributes</h3> |
80 <h3>Global Attributes</h3> |
81 {GlobalsList} |
81 {GlobalsList} |
102 {MethodList} |
102 {MethodList} |
103 <h3>Static Methods</h3> |
103 <h3>Static Methods</h3> |
104 {StaticMethodList} |
104 {StaticMethodList} |
105 {MethodDetails} |
105 {MethodDetails} |
106 <div align="right"><a href="#top">Up</a></div> |
106 <div align="right"><a href="#top">Up</a></div> |
107 <hr />''' |
107 <hr />""" |
108 |
108 |
109 methodTemplate = ''' |
109 methodTemplate = """ |
110 <a NAME="{Anchor}.{Method}" ID="{Anchor}.{Method}"></a> |
110 <a NAME="{Anchor}.{Method}" ID="{Anchor}.{Method}"></a> |
111 <h4>{Class}.{Method}{MethodClassifier}</h4> |
111 <h4>{Class}.{Method}{MethodClassifier}</h4> |
112 <b>{Method}</b>(<i>{Params}</i>) |
112 <b>{Method}</b>(<i>{Params}</i>) |
113 {MethodDescription}''' |
113 {MethodDescription}""" |
114 |
114 |
115 constructorTemplate = ''' |
115 constructorTemplate = """ |
116 <a NAME="{Anchor}.{Method}" ID="{Anchor}.{Method}"></a> |
116 <a NAME="{Anchor}.{Method}" ID="{Anchor}.{Method}"></a> |
117 <h4>{Class} (Constructor)</h4> |
117 <h4>{Class} (Constructor)</h4> |
118 <b>{Class}</b>(<i>{Params}</i>) |
118 <b>{Class}</b>(<i>{Params}</i>) |
119 {MethodDescription}''' |
119 {MethodDescription}""" |
120 |
120 |
121 rbModuleTemplate = ''' |
121 rbModuleTemplate = """ |
122 <hr /> |
122 <hr /> |
123 <a NAME="{Anchor}" ID="{Anchor}"></a> |
123 <a NAME="{Anchor}" ID="{Anchor}"></a> |
124 <h2>{Module}</h2> |
124 <h2>{Module}</h2> |
125 {ModuleDescription} |
125 {ModuleDescription} |
126 <h3>Module Attributes</h3> |
126 <h3>Module Attributes</h3> |
131 {FunctionsList} |
131 {FunctionsList} |
132 <hr /> |
132 <hr /> |
133 {ClassesDetails} |
133 {ClassesDetails} |
134 {FunctionsDetails} |
134 {FunctionsDetails} |
135 <div align="right"><a href="#top">Up</a></div> |
135 <div align="right"><a href="#top">Up</a></div> |
136 <hr />''' |
136 <hr />""" |
137 |
137 |
138 rbModulesClassTemplate = ''' |
138 rbModulesClassTemplate = """ |
139 <a NAME="{Anchor}" ID="{Anchor}"></a> |
139 <a NAME="{Anchor}" ID="{Anchor}"></a> |
140 <h2>{Class}</h2> |
140 <h2>{Class}</h2> |
141 {ClassDescription} |
141 {ClassDescription} |
142 <h3>Derived from</h3> |
142 <h3>Derived from</h3> |
143 {ClassSuper} |
143 {ClassSuper} |
144 <h3>Methods</h3> |
144 <h3>Methods</h3> |
145 {MethodList} |
145 {MethodList} |
146 {MethodDetails} |
146 {MethodDetails} |
147 <div align="right"><a href="#top">Up</a></div> |
147 <div align="right"><a href="#top">Up</a></div> |
148 <hr />''' |
148 <hr />""" |
149 |
149 |
150 functionTemplate = ''' |
150 functionTemplate = """ |
151 <hr /> |
151 <hr /> |
152 <a NAME="{Anchor}" ID="{Anchor}"></a> |
152 <a NAME="{Anchor}" ID="{Anchor}"></a> |
153 <h2>{Function}</h2> |
153 <h2>{Function}</h2> |
154 <b>{Function}</b>(<i>{Params}</i>) |
154 <b>{Function}</b>(<i>{Params}</i>) |
155 {FunctionDescription} |
155 {FunctionDescription} |
156 <div align="right"><a href="#top">Up</a></div> |
156 <div align="right"><a href="#top">Up</a></div> |
157 <hr />''' |
157 <hr />""" |
158 |
158 |
159 listTemplate = ''' |
159 listTemplate = """ |
160 <table> |
160 <table> |
161 {Entries} |
161 {Entries} |
162 </table>''' |
162 </table>""" |
163 |
163 |
164 listEntryTemplate = ''' |
164 listEntryTemplate = """ |
165 <tr> |
165 <tr> |
166 <td><a href="#{Link}">{Name}</a></td> |
166 <td><a href="#{Link}">{Name}</a></td> |
167 <td>{Deprecated}{Description}</td> |
167 <td>{Deprecated}{Description}</td> |
168 </tr>''' |
168 </tr>""" |
169 |
169 |
170 listEntryNoneTemplate = '''<tr><td>None</td></tr>''' |
170 listEntryNoneTemplate = """<tr><td>None</td></tr>""" |
171 |
171 |
172 listEntryDeprecatedTemplate = '''<b>Deprecated.</b>''' |
172 listEntryDeprecatedTemplate = """<b>Deprecated.</b>""" |
173 |
173 |
174 listEntrySimpleTemplate = '''<tr><td>{Name}</td></tr>''' |
174 listEntrySimpleTemplate = """<tr><td>{Name}</td></tr>""" |
175 |
175 |
176 paragraphTemplate = ''' |
176 paragraphTemplate = """ |
177 <p> |
177 <p> |
178 {Lines} |
178 {Lines} |
179 </p>''' |
179 </p>""" |
180 |
180 |
181 parametersListTemplate = ''' |
181 parametersListTemplate = """ |
182 <dl> |
182 <dl> |
183 {Parameters} |
183 {Parameters} |
184 </dl>''' |
184 </dl>""" |
185 |
185 |
186 parametersListEntryTemplate = ''' |
186 parametersListEntryTemplate = """ |
187 <dt><i>{Name}</i></dt> |
187 <dt><i>{Name}</i></dt> |
188 <dd> |
188 <dd> |
189 {Description} |
189 {Description} |
190 </dd>''' |
190 </dd>""" |
191 |
191 |
192 parameterTypesListEntryTemplate = ''' |
192 parameterTypesListEntryTemplate = """ |
193 <dt><i>{Name}</i> ({Type})</dt> |
193 <dt><i>{Name}</i> ({Type})</dt> |
194 <dd> |
194 <dd> |
195 {Description} |
195 {Description} |
196 </dd>''' |
196 </dd>""" |
197 |
197 |
198 returnsTemplate = ''' |
198 returnsTemplate = """ |
199 <dl> |
199 <dl> |
200 <dt>Return:</dt> |
200 <dt>Return:</dt> |
201 <dd> |
201 <dd> |
202 {0} |
202 {0} |
203 </dd> |
203 </dd> |
204 </dl>''' |
204 </dl>""" |
205 |
205 |
206 returnTypesTemplate = ''' |
206 returnTypesTemplate = """ |
207 <dl> |
207 <dl> |
208 <dt>Return Type:</dt> |
208 <dt>Return Type:</dt> |
209 <dd> |
209 <dd> |
210 {0} |
210 {0} |
211 </dd> |
211 </dd> |
212 </dl>''' |
212 </dl>""" |
213 |
213 |
214 yieldsTemplate = ''' |
214 yieldsTemplate = """ |
215 <dl> |
215 <dl> |
216 <dt>Yield:</dt> |
216 <dt>Yield:</dt> |
217 <dd> |
217 <dd> |
218 {0} |
218 {0} |
219 </dd> |
219 </dd> |
220 </dl>''' |
220 </dl>""" |
221 |
221 |
222 yieldTypesTemplate = ''' |
222 yieldTypesTemplate = """ |
223 <dl> |
223 <dl> |
224 <dt>Yield Type:</dt> |
224 <dt>Yield Type:</dt> |
225 <dd> |
225 <dd> |
226 {0} |
226 {0} |
227 </dd> |
227 </dd> |
228 </dl>''' |
228 </dl>""" |
229 |
229 |
230 exceptionsListTemplate = ''' |
230 exceptionsListTemplate = """ |
231 <dl> |
231 <dl> |
232 {Exceptions} |
232 {Exceptions} |
233 </dl>''' |
233 </dl>""" |
234 |
234 |
235 exceptionsListEntryTemplate = ''' |
235 exceptionsListEntryTemplate = """ |
236 <dt>Raises <b>{Name}</b>:</dt> |
236 <dt>Raises <b>{Name}</b>:</dt> |
237 <dd> |
237 <dd> |
238 {Description} |
238 {Description} |
239 </dd>''' |
239 </dd>""" |
240 |
240 |
241 signalsListTemplate = ''' |
241 signalsListTemplate = """ |
242 <h3>Signals</h3> |
242 <h3>Signals</h3> |
243 <dl> |
243 <dl> |
244 {Signals} |
244 {Signals} |
245 </dl>''' |
245 </dl>""" |
246 |
246 |
247 signalsListEntryTemplate = ''' |
247 signalsListEntryTemplate = """ |
248 <dt>{Name}</dt> |
248 <dt>{Name}</dt> |
249 <dd> |
249 <dd> |
250 {Description} |
250 {Description} |
251 </dd>''' |
251 </dd>""" |
252 |
252 |
253 eventsListTemplate = ''' |
253 eventsListTemplate = """ |
254 <h3>Events</h3> |
254 <h3>Events</h3> |
255 <dl> |
255 <dl> |
256 {Events} |
256 {Events} |
257 </dl>''' |
257 </dl>""" |
258 |
258 |
259 eventsListEntryTemplate = ''' |
259 eventsListEntryTemplate = """ |
260 <dt>{Name}</dt> |
260 <dt>{Name}</dt> |
261 <dd> |
261 <dd> |
262 {Description} |
262 {Description} |
263 </dd>''' |
263 </dd>""" |
264 |
264 |
265 deprecatedTemplate = ''' |
265 deprecatedTemplate = """ |
266 <p> |
266 <p> |
267 <b>Deprecated.</b> |
267 <b>Deprecated.</b> |
268 {Lines} |
268 {Lines} |
269 </p>''' |
269 </p>""" |
270 |
270 |
271 authorInfoTemplate = ''' |
271 authorInfoTemplate = """ |
272 <p> |
272 <p> |
273 <i>Author(s)</i>: |
273 <i>Author(s)</i>: |
274 {Authors} |
274 {Authors} |
275 </p>''' |
275 </p>""" |
276 |
276 |
277 seeListTemplate = ''' |
277 seeListTemplate = """ |
278 <dl> |
278 <dl> |
279 <dt><b>See Also:</b></dt> |
279 <dt><b>See Also:</b></dt> |
280 {Links} |
280 {Links} |
281 </dl>''' |
281 </dl>""" |
282 |
282 |
283 seeListEntryTemplate = ''' |
283 seeListEntryTemplate = """ |
284 <dd> |
284 <dd> |
285 {Link} |
285 {Link} |
286 </dd>''' |
286 </dd>""" |
287 |
287 |
288 seeLinkTemplate = '''<a {Link}''' |
288 seeLinkTemplate = """<a {Link}""" |
289 |
289 |
290 sinceInfoTemplate = ''' |
290 sinceInfoTemplate = """ |
291 <p> |
291 <p> |
292 <b>since</b> {Info} |
292 <b>since</b> {Info} |
293 </p>''' |
293 </p>""" |
294 |
294 |
295 ################################# |
295 ################################# |
296 ## Templates for index files ## |
296 ## Templates for index files ## |
297 ################################# |
297 ################################# |
298 |
298 |
299 indexBodyTemplate = ''' |
299 indexBodyTemplate = """ |
300 <h1>{Title}</h1> |
300 <h1>{Title}</h1> |
301 {Description} |
301 {Description} |
302 {Subpackages} |
302 {Subpackages} |
303 {Modules}''' |
303 {Modules}""" |
304 |
304 |
305 indexListPackagesTemplate = ''' |
305 indexListPackagesTemplate = """ |
306 <h3>Packages</h3> |
306 <h3>Packages</h3> |
307 <table> |
307 <table> |
308 {Entries} |
308 {Entries} |
309 </table>''' |
309 </table>""" |
310 |
310 |
311 indexListModulesTemplate = ''' |
311 indexListModulesTemplate = """ |
312 <h3>Modules</h3> |
312 <h3>Modules</h3> |
313 <table> |
313 <table> |
314 {Entries} |
314 {Entries} |
315 </table>''' |
315 </table>""" |
316 |
316 |
317 indexListEntryTemplate = ''' |
317 indexListEntryTemplate = """ |
318 <tr> |
318 <tr> |
319 <td><a href="{Link}">{Name}</a></td> |
319 <td><a href="{Link}">{Name}</a></td> |
320 <td>{Description}</td> |
320 <td>{Description}</td> |
321 </tr>''' |
321 </tr>""" |
322 |
322 |
323 # |
323 # |
324 # eflag: noqa = E122 |
324 # eflag: noqa = E122 |