ci: docs exists I promise github

This commit is contained in:
Daylin Morgan 2023-08-22 22:53:25 -05:00
parent 640bcba873
commit 4d84f3730e
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
2 changed files with 3 additions and 1 deletions

View file

@ -37,6 +37,8 @@ def svgs(session):
@nox.session
def docs(session):
pdm_install(session, "docs")
Path("docs").mkdir(exist_ok=True)
if not Path("docs/svgs").is_dir():
svgs(session)

View file

@ -6,7 +6,7 @@ from textwrap import dedent
from typing import Tuple
DOCS_PATH = Path(__file__).parent.parent / "docs"
(SAVE_PATH := DOCS_PATH / "svgs").mkdir(exist_ok=True)
(SAVE_PATH := DOCS_PATH / "svgs").mkdir(exist_ok=True, parents=True)
VIV = Path(__file__).parent.parent / "src" / "viv" / "viv.py"
CLI_DOC_PATH = DOCS_PATH / "cli.md"