.github/update_docs.py
def main(root: Path = typer.Argument(Path.cwd(), help="Root path to look in")):
    """
    Automatically update all auto-generated docs in the repo. If existing
    auto-generated docs are found, only that section is replaced. README.md
    files including an ignore comment are skipped (e.g. to support projects
    without an auto-generated README and prevent those files from being
    auto-replaced).
    """
    msg.info(f"Updating auto-generated docs in {root}")
    # We look specifically for project directories
    for path in root.glob(f"**/*/{PROJECT_FILE}"):
        path = path.parent
        project_document(path, path / "README.md")

    Automatically update all auto-generated docs in the repo. If existing
    auto-generated docs are found, only that section is replaced. README.md
    files including an ignore comment are skipped (e.g. to support projects
    without an auto-generated README and prevent those files from being
    auto-replaced).
    
Automatically update all auto-generated docs in the repo. If existing
auto-generated docs are found, only that section is replaced. README.md
files including an ignore comment are skipped .
Automatically update all auto - generated docs in the repo . If existing auto - generated docs are found only that section is replaced . README . md files including an ignore comment are skipped .
def main(root: Path = typer.Argument(Path.cwd(), help="Root path to look in")):
    msg.info(f"Updating auto-generated docs in {root}")
    for path in root.glob(f"**/*/{PROJECT_FILE}"):
        path = path.parent
        project_document(path, path / "README.md")
def main ( root : Path = typer . Argument ( Path . cwd ( ) , help = "Root path to look in" ) ) : msg . info ( f"Updating auto-generated docs in {root}" ) for path in root . glob ( f"**/*/{PROJECT_FILE}" ) : path = path . parent project_document ( path , path / "README.md" )
Automatically update all auto-generated docs in the repo.
Automatically update all auto - generated docs in the repo .
"""
    Automatically update all auto-generated docs in the repo. If existing
    auto-generated docs are found, only that section is replaced. README.md
    files including an ignore comment are skipped (e.g. to support projects
    without an auto-generated README and prevent those files from being
    auto-replaced).
    """ # We look specifically for project directories
root
Path