From 304f658697bc157d4fdbbe1a2dee523e0bce1e1f Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Fri, 6 Sep 2024 17:50:54 -0500 Subject: [PATCH] fix: publish mode --- sphinx_ape/_cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sphinx_ape/_cli.py b/sphinx_ape/_cli.py index 754a2bd..be44981 100644 --- a/sphinx_ape/_cli.py +++ b/sphinx_ape/_cli.py @@ -131,6 +131,7 @@ def test(base_path): @cli.command() @click.argument("base_path", type=Path) +@build_mode_option() @click.option( "--repo", "--repository", @@ -141,11 +142,11 @@ def test(base_path): is_flag=True, hidden=True, ) -def publish(base_path, repo, skip_push): +def publish(base_path, mode, repo, skip_push): """ Publish docs """ - builder = _create_builder(base_path=base_path) + builder = _create_builder(mode=mode, base_path=base_path) try: builder.publish(repository=repo, push=not skip_push) except ApeDocsPublishError as err: