(session)
Build the docs for this library.
Build the docs for this library.
Build the docs for this library .
def docs(session):
    """Build the docs for this library."""

    session.install("-e", ".[aiohttp]")
    session.install("sphinx", "alabaster", "recommonmark", "sphinx-docstring-typing")

    shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
    session.run(
        "sphinx-build",
        "-T",  # show full traceback on exception
        "-W",  # warnings as errors
        "-N",  # no colors
        "-b",
        "html",
        "-d",
        os.path.join("docs", "_build", "doctrees", ""),
        os.path.join("docs", ""),
        os.path.join("docs", "_build", "html", ""),
    )
def docs ( session ) : session . install ( "-e" , ".[aiohttp]" ) session . install ( "sphinx" , "alabaster" , "recommonmark" , "sphinx-docstring-typing" ) shutil . rmtree ( os . path . join ( "docs" , "_build" ) , ignore_errors = True ) session . run ( "sphinx-build" , "-T" , # show full traceback on exception "-W" , # warnings as errors "-N" , # no colors "-b" , "html" , "-d" , os . path . join ( "docs" , "_build" , "doctrees" , "" ) , os . path . join ( "docs" , "" ) , os . path . join ( "docs" , "_build" , "html" , "" ) , )