Skip to content

Commit d454d33

Browse files
committed
Add —target to rsmanage build
1 parent ef1957c commit d454d33

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

bases/rsptx/rsmanage/core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,10 @@ async def addcourse(
401401
"--gen", is_flag=True, help="Build PreTeXt generated assets (a one time thing)"
402402
)
403403
@click.option("--manifest", default="runestone-manifest.xml", help="Manifest file")
404+
@click.option("--target", default="runestone", help="Target for PreTeXt build")
404405
@click.argument("course", nargs=1)
405406
@pass_config
406-
async def build(config, clone, ptx, gen, manifest, course):
407+
async def build(config, clone, ptx, gen, manifest, target, course):
407408
"""
408409
rsmanage build [options] COURSE
409410
Build the book for an existing course
@@ -435,7 +436,7 @@ async def build(config, clone, ptx, gen, manifest, course):
435436
click.echo(f"Switching to book dir {course}")
436437
os.chdir(course)
437438
if ptx:
438-
res = _build_ptx_book(config, gen, manifest, course)
439+
res = _build_ptx_book(config, gen, manifest, course, target=target)
439440

440441
else:
441442
res = _build_runestone_book(config, course)

0 commit comments

Comments
 (0)