mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-10 11:32:57 +00:00
mkdir parents in update_wiki.py (#2225)
This commit is contained in:
@@ -111,7 +111,7 @@ def update_monthly_wiki_page(
|
||||
year = year_month[:4]
|
||||
monthly_page = wiki_dir / "monthly-files" / year / (year_month + ".md")
|
||||
if not monthly_page.exists():
|
||||
monthly_page.parent.mkdir(exist_ok=True)
|
||||
monthly_page.parent.mkdir(parents=True, exist_ok=True)
|
||||
monthly_page.write_text(MONTHLY_PAGE_HEADER)
|
||||
LOGGER.info(f"Created monthly page: {monthly_page.relative_to(wiki_dir)}")
|
||||
|
||||
|
Reference in New Issue
Block a user