def _thumbnail_path_to_url(path):
    """
    Convert a local thumbnail path (string) to an absolute URL using the GitHub
    repository location detected using `get_continuous_integration_parameters`.
    """
    if not path:
        return None
    from .ci import get_continuous_integration_parameters
    info = get_continuous_integration_parameters()
    try:
        url = (
            f"https://github.com/{info['repo_slug']}/raw/{info['triggering_commit']}/{path}"
            )
    except (TypeError, KeyError):
        return None
    return url
