From b586a6d94915a51654a4ff53a00223d83327b025 Mon Sep 17 00:00:00 2001 From: Stefan Hansson Date: Sat, 14 Feb 2026 11:11:25 +0100 Subject: [PATCH] docs: specify path to deviceinfo reference when generating it Closes https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4333 Signed-off-by: Stefan Hansson Part-of: --- docs/conf.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index e8f7f65cf..bbaecc3b1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -28,8 +28,12 @@ html_title = "postmarketOS Packaging" def run_dint_doc(app): - with Path(__file__).parent.joinpath("deviceinfo-reference.md").open("w") as f: - subprocess.run(["dint", "doc"], stdout=f, check=True) + docs_dir = Path(__file__).parent + + with docs_dir.joinpath("deviceinfo-reference.md").open("w") as f: + schema_path = docs_dir.parent / "deviceinfo_schema.toml" + + subprocess.run(["dint", "doc"], stdout=f, check=True, env={"DINT_SCHEMA_PATH": schema_path}) def setup(app):