def METHOD_NAME(cli: CliRunner, temp_with_override, file_regression):
    """Testing with additional `url` link key in _toc.yml"""
    path_output = temp_with_override.joinpath("mybook").absolute()
    # Regular TOC should work
    p_toc = path_books.joinpath("toc")
    path_toc = p_toc.joinpath("_toc_urllink.yml")
    result = cli.invoke(
        build,
        [
            p_toc.as_posix(),
            "--path-output",
            path_output.as_posix(),
            "--toc",
            path_toc.as_posix(),
        ],
    )
    print(result.output)
    assert result.exit_code == 0
    path_toc_directive = path_output.joinpath("_build", "html", "index.html")
    # get the tableofcontents markup
    soup = BeautifulSoup(path_toc_directive.read_text(encoding="utf8"), "html.parser")
    toc = soup.find_all("div", class_="toctree-wrapper")
    assert len(toc) == 1
    file_regression.check(toc[0].prettify(), extension=".html", encoding="utf8")