Something went wrong. Try again.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041# Configuration file for the Sphinx documentation builder.
import datetimefrom pathlib import Pathimport subprocess
project = "pmaports"copyright = str(datetime.date.today().year) + ", postmarketOS contributors"exclude_patterns = ["_build", "_out", "Thumbs.db", ".DS_Store", ".venv", "README.md"]
extensions = [ "myst_parser", "sphinx.ext.autodoc", "sphinx.ext.autosummary", "sphinx.ext.doctest", "sphinxcontrib.autoprogram", "sphinxcontrib.jquery",]myst_enable_extensions = ["colon_fence"]
html_theme = "pmos"html_theme_options = { "source_edit_link": "https://gitlab.postmarketos.org/postmarketOS/pmaports/-/blob/main/docs/{filename}",}
# Set the explicit title of the HTML outputhtml_title = "postmarketOS Packaging"
def run_dint_doc(app): 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): app.connect("builder-inited", run_dint_doc)