From 6e5b6f77a4f7e441b61877bf8a0e73037e0a7897 Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Fri, 26 Apr 2024 21:02:43 -0500 Subject: [PATCH] docs!: update to v3 style (#3324) (#3432) fix(docs): adjust build script --- docs/conf.py | 4 +--- tools/build_docs.py | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 89c4df30db..6358602ce3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -65,7 +65,7 @@ "tortoise": ("https://tortoise.github.io/", None), "piccolo": ("https://piccolo-orm.readthedocs.io/en/latest", None), "opentelemetry": ("https://opentelemetry-python.readthedocs.io/en/latest/", None), - "advanced-alchemy": ("https://docs.advanced-alchemy.jolt.rs/latest/", None), + "advanced-alchemy": ("https://docs.advanced-alchemy.litestar.dev/latest/", None), "jinja2": ("https://jinja.palletsprojects.com/en/latest/", None), "trio": ("https://trio.readthedocs.io/en/stable/", None), } @@ -414,7 +414,5 @@ def delayed_setup(app: Sphinx) -> None: def setup(app: Sphinx) -> dict[str, bool]: app.connect("builder-inited", delayed_setup, priority=0) - app.setup_extension("litestar_sphinx_theme") - return {"parallel_read_safe": True, "parallel_write_safe": True} diff --git a/tools/build_docs.py b/tools/build_docs.py index 235b168b71..1f8a44c0e2 100644 --- a/tools/build_docs.py +++ b/tools/build_docs.py @@ -27,6 +27,7 @@ parser = argparse.ArgumentParser() parser.add_argument("--version", required=False) +parser.add_argument("--environment", required=False) parser.add_argument("output") @@ -86,7 +87,7 @@ def build(output_dir: str, version: str | None, environment: str = "local") -> N def main() -> None: args = parser.parse_args() - build(output_dir=args.output, version=args.version) + build(output_dir=args.output, version=args.version, environment=args.environment) if __name__ == "__main__":