@@ -164,18 +164,18 @@ def parent_logger_card_html(
164
164
Generate the HTML for a parent logger card.
165
165
166
166
Generate the HTML for the card corresponding to the parent
167
- :class:`ShellLogger`. The HTML elements are yielded one at a time
168
- to avoid loading *all* the data from the :class:`ShellLogger` into
169
- memory at once.
167
+ :class:`shell_logger. ShellLogger`. The HTML elements are yielded
168
+ one at a time to avoid loading *all* the data from the
169
+ :class:`shell_logger.ShellLogger` into memory at once.
170
170
171
171
Parameters:
172
- name: The name of the :class:`ShellLogger`.
172
+ name: The name of the :class:`shell_logger. ShellLogger`.
173
173
*args: A list of generators to lazily yield string HTML
174
174
elements for the contents of the parent card.
175
175
176
176
Yields:
177
177
The header, followed by all the contents of the
178
- :class:`ShellLogger`, and then the footer.
178
+ :class:`shell_logger. ShellLogger`, and then the footer.
179
179
"""
180
180
header , indent , footer = split_template (
181
181
parent_logger_template , "parent_body" , name = name
@@ -191,11 +191,11 @@ def child_logger_card(log) -> Iterator[str]:
191
191
Generate a child logger card.
192
192
193
193
Create a card to go in the HTML log file containing everything
194
- pertaining to a child :class:`ShellLogger`.
194
+ pertaining to a child :class:`shell_logger. ShellLogger`.
195
195
196
196
Parameters:
197
- log (ShellLogger): The child :class:`ShellLogger` for which to
198
- generate the card.
197
+ log (ShellLogger): The child :class:`shell_logger. ShellLogger`
198
+ for which to generate the card.
199
199
200
200
Returns:
201
201
A generator that will lazily yield the elements of the HTML for
@@ -219,19 +219,20 @@ def child_logger_card_html(
219
219
Generate the HTML for a child logger card.
220
220
221
221
Generate the HTML for a card corresponding to the child
222
- :class:`ShellLogger`. The HTML elements are yielded one at a time
223
- to avoid loading *all* the data from the :class:`ShellLogger` into
224
- memory at once.
222
+ :class:`shell_logger. ShellLogger`. The HTML elements are yielded
223
+ one at a time to avoid loading *all* the data from the
224
+ :class:`shell_logger.ShellLogger` into memory at once.
225
225
226
226
Parameters:
227
- name: The name of the child :class:`ShellLogger`.
228
- duration: The duration of the child :class:`ShellLogger`.
227
+ name: The name of the child :class:`shell_logger.ShellLogger`.
228
+ duration: The duration of the child
229
+ :class:`shell_logger.ShellLogger`.
229
230
*args: A generator (or list of generators) to lazily yield
230
231
string HTML elements for the contents of the child card.
231
232
232
233
Yields:
233
234
The header, followed by all the contents of the child
234
- :class:`ShellLogger`, and then the footer.
235
+ :class:`shell_logger. ShellLogger`, and then the footer.
235
236
236
237
Todo:
237
238
* Should we replace the ``for`` loop with the one found in
@@ -261,8 +262,8 @@ def command_card_html(
261
262
*all* the data into memory at once.
262
263
263
264
Parameters:
264
- log: An entry from the :class:`ShellLogger` 's log book
265
- corresponding to a command that was run.
265
+ log: An entry from the :class:`shell_logger. ShellLogger` 's
266
+ log book corresponding to a command that was run.
266
267
*args: A generator that will yield all the elements to be
267
268
included in the command card one at a time.
268
269
@@ -298,8 +299,8 @@ def html_message_card(log: dict) -> Iterator[str]:
298
299
well).
299
300
300
301
Parameters:
301
- log: An entry from the :class:`ShellLogger` 's log book
302
- corresponding to a message.
302
+ log: An entry from the :class:`shell_logger. ShellLogger` 's
303
+ log book corresponding to a message.
303
304
304
305
Yields:
305
306
The header, followed by the contents of the message card, and
@@ -333,8 +334,8 @@ def message_card(log: dict) -> Iterator[str]:
333
334
printed to ``stdout`` and included in the HTML log file.
334
335
335
336
Parameters:
336
- log: An entry from the :class:`ShellLogger` 's log book
337
- corresponding to a message.
337
+ log: An entry from the :class:`shell_logger. ShellLogger` 's
338
+ log book corresponding to a message.
338
339
339
340
Yields:
340
341
The header, followed by the contents of the message card, and
@@ -412,8 +413,8 @@ def command_card(log: dict, stream_dir: Path) -> Iterator[str]:
412
413
information, trace output, memory/CPU/disk statistics, etc.).
413
414
414
415
Parameters:
415
- log: An entry from the :class:`ShellLogger` 's log book
416
- corresponding to a command that was run.
416
+ log: An entry from the :class:`shell_logger. ShellLogger` 's
417
+ log book corresponding to a command that was run.
417
418
stream_dir: The stream directory containing the ``stdout``,
418
419
``stderr``, and ``trace`` output from the command.
419
420
0 commit comments