Placeholder fix
Some checks are pending
gl/check check status: pending (b6cb96297416e9054cbf665f5c592e3a463e2954)

This commit is contained in:
2023-04-18 11:59:28 +00:00
parent 389bc4bdaa
commit b6cb962974

View File

@ -205,9 +205,10 @@ def process_repositories(args, service):
repo_to.index.add(pathlib.Path(copy_path, "index.rst"))
placeholder_path = pathlib.Path(copy_path, "_static")
if not placeholder_path.exists():
if not pathlib.Path(placeholder_path, "placeholder").exists():
placeholder_path.mkdir(parents=True, exist_ok=True)
open(pathlib.Path(placeholder_path, ".placeholder"), 'a').close()
open(pathlib.Path(placeholder_path, "placeholder"), 'a').close()
repo_to.index.add(pathlib.Path(placeholder_path, "placeholder"))
if args.update_tox:
context = dict(docs=[])