From 6c431d8d79c3d6d7c73c6f39edb3797539b1bd28 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 | 2 -- tools/build_docs.py | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index a1e9f83a96..6358602ce3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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__":