#!/usr/bin/env python3 """Builds the guide in this folder as .html, .pdf and .docx. Usage: python3 build.py The real work is done by ../_tools/build_guide.py (shared by all guides).""" import runpy, sys from pathlib import Path here = Path(__file__).resolve().parent md = next(p for p in here.glob("*.md") if p.name != "README.md") sys.argv = ["build_guide.py", str(md)] runpy.run_path(str(here.parent / "_tools" / "build_guide.py"), run_name="__main__")