MCPcopy
hub / github.com/gpustack/gpustack / render_setup_list

Function render_setup_list

hack/perf/perf_doc_common.py:414–426  ·  view source on GitHub ↗
(title: str, values: list[str])

Source from the content-addressed store, hash-verified

412
413
414def render_setup_list(title: str, values: list[str]) -> list[str]:
415 lines = [f"### {title}", ""]
416 if not values:
417 lines.append("N/A")
418 lines.append("")
419 return lines
420 if len(values) == 1:
421 lines.append(values[0])
422 lines.append("")
423 return lines
424 lines.extend(f"- {value}" for value in values)
425 lines.append("")
426 return lines
427
428
429def render_standard_note_block() -> list[str]:

Callers 3

generate_markdownFunction · 0.85

Calls 2

appendMethod · 0.80
extendMethod · 0.80

Tested by

no test coverage detected