Generate README.md content from main index.md
()
| 377 | |
| 378 | @app.command() |
| 379 | def 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() |
nothing calls this directly
no test coverage detected
searching dependent graphs…