def METHOD_NAME(doc_path, git_branch):
    """
    Convert a file path to a GitHub URL.
    """
    if doc_path.startswith(str(REPO_DIR)):
        doc_path = doc_path[len(str(REPO_DIR)) :].lstrip("/")
        return urljoin(BASE_GITHUB_URL, quote(doc_path)).format(git_branch=git_branch)
    return ""