[DEV] Regen docs with make docs

This commit is contained in:
Jesse Bannon 2024-04-27 14:01:38 -07:00
parent aa637d12dc
commit 02709d4320
2 changed files with 3 additions and 1 deletions

View file

@ -40,6 +40,7 @@ executable: clean
pyinstaller ytdl-sub.spec
mv dist/ytdl-sub dist/ytdl-sub${EXEC_SUFFIX}
docs:
REGENERATE_DOCS=1 pytest tests/unit/docgen/test_docgen.py
sphinx-build -M html docs/source/ docs/build/
clean:
rm -rf \

View file

@ -1,7 +1,8 @@
import os
from abc import abstractmethod
from pathlib import Path
REGENERATE_DOCS: bool = False
REGENERATE_DOCS: bool = bool(os.environ.get("REGENERATE_DOCS", 1))
class DocGen: