Notebook README CLI (mdhtml-readme)
Generate README.md from a notebook (mdhtml-readme) without Quarto.
Uses the notebook's stored outputs as found (nothing executes), drops #| hide cells, strips leading #| directive lines, consumes leading raw YAML frontmatter, and extracts embedded images into a {stem}_files/ directory. Prepends an autogenerated warning comment unless head replaces or suppresses it.
main
def main(
file:str=None, # Notebook to render (default: the configured `readme_nb` under `nbs_path`)
out:str=None, # Output path (default: README.md at the project root)
head:str=None, # Text placed above the output (default: a do-not-edit comment; pass '' for none)
):
Create README.md, and a {stem}_files/ directory of extracted images, from a notebook's stored outputs