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:
+6
-2
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user