MCPcopy
hub / github.com/fastapi/fastapi / generate_readme

Function generate_readme

scripts/docs.py:379–391  ·  view source on GitHub ↗

Generate README.md content from main index.md

()

Source from the content-addressed store, hash-verified

377
378@app.command()
379def generate_readme() -> None:
380 """
381 Generate README.md content from main index.md
382 """
383 readme_path = Path("README.md")
384 old_content = readme_path.read_text("utf-8")
385 new_content = generate_readme_content()
386 if new_content != old_content:
387 print("README.md outdated from the latest index.md")
388 print("Updating README.md")
389 readme_path.write_text(new_content, encoding="utf-8")
390 raise typer.Exit(1)
391 print("README.md is up to date ✅")
392
393
394@app.command()

Callers

nothing calls this directly

Calls 2

generate_readme_contentFunction · 0.85
PathClass · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…