Scientific Python MyST Theme template. This is a copier template you can use to create your own MyST website, styled with the Scientific Python theme.
Install copier:
pip install copier or uv tool install copier
copier copy gh:scientific-python/scientific-python-myst-theme <your-site>Copier fetches the template from GitHub. No clone is needed.
copier copy writes .copier-answers.yml into your site. It records the
template commit and your answers, and copier update uses it to replay
template changes on top of your own edits.
-
Commit or stash your changes. Copier refuses to update a dirty git tree.
-
From the directory that holds
.copier-answers.yml, run:copier update --defaults
--defaultsreuses your previous answers and takes the default for any new question. Copier updates to the latest release tag, or to the latest commit while the template has no tags. Add--vcs-ref HEADto take the latest commit regardless. -
Review the result with
git diff. Where your edits and the template change overlap, copier leaves inline conflict markers (<<<<<<< before updating). Resolve them by hand. -
Commit.
To change one answer, pass it on the command line instead of editing the answers file:
copier update --defaults --data footer_items_json=assets/json/links.jsonNever edit .copier-answers.yml by hand. Copier trusts it as the record of
what produced the site, and edits break the update diff.
You need to set a GH_TOKEN with team read permissions. Then download the team data from GitHub to JSON:
python tools/team_query.py --org scikit-image --team core -o team-skimage.json
This can be rendered as a gallery from inside a page as:
```{team-grid}
:file: team-skimage.json
:columns: 2 2 2 4
```