docs: specify path to deviceinfo reference when generating it

Closes https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4333

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8011>
This commit is contained in:
Stefan Hansson
2026-02-14 20:05:28 +00:00
parent 2adf6c7c45
commit b586a6d949
+6 -2
View File
@@ -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):