mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Work around ctx.run kwargs for now
This commit is contained in:
parent
1aa74894dc
commit
042909e2bb
1 changed files with 6 additions and 2 deletions
|
@ -28,8 +28,12 @@ doc = command_group(name="docs", help="Manpages tools", description=__doc__)
|
|||
name="man",
|
||||
)
|
||||
def man(ctx: Context):
|
||||
ctx.run("make", "clean", cwd="doc/", check=True)
|
||||
ctx.run("make", "man", "SHPINXOPTS=-W", cwd="doc/", check=True)
|
||||
#XXX tools update
|
||||
#ctx.run("make", "clean", cwd="doc/", check=True)
|
||||
#ctx.run("make", "man", "SHPINXOPTS=-W", cwd="doc/", check=True)
|
||||
os.chdir("doc/")
|
||||
ctx.run("make", "clean", check=True)
|
||||
ctx.run("make", "man", "SHPINXOPTS=-W", check=True)
|
||||
for root, dirs, files in os.walk("doc/_build/man"):
|
||||
for file in files:
|
||||
shutil.copy(os.path.join(root, file), os.path.join("doc/man", file))
|
||||
|
|
Loading…
Add table
Reference in a new issue