Skip to content
Projects

Use this template

This repository is a template, not a library: it is not published to PyPI. A simulation code forks it once and keeps it as the home of its profiling results.

Create a repository from this template (or fork it). In the new repository:

  1. In docs/astro.config.mjs, set repo to the repository’s name, owner if it is not max-models, and the title and description. The base path of the site follows from repo.
  2. In catalogue.yaml, set base to / plus the same name. The generated pages need the base path for their links, because the site’s link check rejects relative ones.
  3. In pyproject.toml, rename the project.
  4. Enable GitHub Pages with the source GitHub Actions (Settings, Pages).

Write catalogue.yaml: the manifest lists the cases and the profiling files of each. Check it with

Terminal window
uv run scope-profiler site catalogue.yaml --check

scripts/fetch_data.sh puts the files into data/ before the site is built. In the template it writes synthetic samples with scripts/make_sample_data.py; replace it with the way your files reach the repository, and delete the sample script. See data and the workflow.

Terminal window
make install # uv sync with the docs extra
make docs-dev # fetches the data, writes the pages, serves http://localhost:4321/scope-profiler-catalog/

Push to devel and the docs workflow builds the site and deploys it.

The pages in docs/src/content/docs/catalogue/ and the chart data in docs/public/catalogue/ are generated and ignored by git; everything else is yours to change, including the report components in docs/src/components/report/, which draw the pages from their data.