mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-28 06:36:02 +00:00
Don't pollute the source directory
This commit is contained in:
parent
3620c174a6
commit
65e278b286
@ -30,9 +30,13 @@ if len(args) > 0:
|
|||||||
'git@github.com:fmtlib/fmt.dev.git', site_dir])
|
'git@github.com:fmtlib/fmt.dev.git', site_dir])
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
sys.exit(ret)
|
sys.exit(ret)
|
||||||
sys.exit(call(['mike'] + args + ['--config-file', config_path,
|
|
||||||
'--branch', 'master'],
|
# Copy the config to the build dir because the site is built relative to it.
|
||||||
cwd=site_dir, env=env))
|
config_build_path = os.path.join(build_dir, 'mkdocs.yml')
|
||||||
|
shutil.copyfile(config_path, config_build_path)
|
||||||
|
|
||||||
|
sys.exit(call(['mike'] + args + ['--config-file', config_build_path,
|
||||||
|
'--branch', 'master'], cwd=site_dir, env=env))
|
||||||
elif not command.startswith('-'):
|
elif not command.startswith('-'):
|
||||||
args += ['-f', config_path]
|
args += ['-f', config_path]
|
||||||
sys.exit(call(['mkdocs'] + args, env=env))
|
sys.exit(call(['mkdocs'] + args, env=env))
|
||||||
|
Loading…
Reference in New Issue
Block a user