SPARC Building Scan is a geospatial analysis toolkit designed for Jupyter-based workflows with publishable Quarto outputs.
src/: Python package source code.notebooks/: Quarto notebooks (.qmd) for reproducible analysis.docs/: Rendered site output used for publication..github/workflows/: CI workflows for build and publish.
-
Create and activate a Python environment.
-
Install dependencies:
pip install -r requirements.txt
-
Render the Quarto notebook locally:
quarto render
-
Open the rendered output in
docs/.
On every pull request, GitHub Actions will:
-
Install dependencies.
-
Render the Quarto project.
-
Upload rendered files as an artifact.
-
Publish a PR preview to the
gh-pagesbranch under:pr-preview/pr-<PR_NUMBER>/
To make previews publicly accessible, ensure GitHub Pages is enabled for the repository and points to the gh-pages branch.