Skip to content

Commit

Permalink
fix: publish mode
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Sep 6, 2024
1 parent ed439d5 commit 304f658
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sphinx_ape/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def test(base_path):

@cli.command()
@click.argument("base_path", type=Path)
@build_mode_option()
@click.option(
"--repo",
"--repository",
Expand All @@ -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:
Expand Down

0 comments on commit 304f658

Please sign in to comment.