Skip to content

Commit

Permalink
This might fix docs failing
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Sep 27, 2024
1 parent 6664500 commit 5cdee30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
GENERAL_TARGETS = ["./noxfile.py", "./genshin", "./tests"]
PYRIGHT_ENV = {"PYRIGHT_PYTHON_FORCE_VERSION": "latest"}
UV_RUN_EXTRA = ("uv", "run", "--isolated", "--no-dev", "--extra")
UV_RUN_NO_ISOLATE = ("uv", "run", "--no-dev", "--extra")

LOGGER = logging.getLogger("nox")

Expand All @@ -34,7 +35,7 @@ def docs(session: nox.Session) -> None:
output_directory = pathlib.Path("./docs/pdoc/")
session.log("Building docs into %s", output_directory)

session.run(*UV_RUN_EXTRA, "docs", "pdoc3", "--html", PACKAGE, "-o", str(output_directory), "--force")
session.run(*UV_RUN_NO_ISOLATE, "docs", "pdoc3", "--html", PACKAGE, "-o", str(output_directory), "--force")
session.log("Docs generated: %s", output_directory / "index.html")


Expand Down

0 comments on commit 5cdee30

Please sign in to comment.