from pathlib import Path


def get_doc_and_coverage(package_name):
    """return the path to the index.html and the path to code coverage."""

    package_path = (
        Path().resolve().parent / "code_documentation" / package_name
    )
    coverage_path = list((package_path / "coverage").glob("index.html"))
    documentation_path = list(
        (package_path / "documentation").glob("index.html")
    )
    return documentation_path, coverage_path