from pathlib import Path


def get_build_root() -> Path:
    """Get the project root folder for the current build."""
    root = Path.cwd()
    if root.name == "docs":
        root = root.parent
    return root