Contributing an exercise
- Easiest: use the exercise generator. It builds
exercise.json, works out the ID, folder and file names, and opens the file on GitHub as a pull request. Every exercise also has a Suggest an edit button. Or do it by hand: - Pick the ID and folder. The ID is
sf-<body>-<equip>-<number>: the body code from the first primary muscle, the equipment code from the equipment, and the next free number for that pair. Find it withpnpm exercises sf-arms-db-. Name the folder<id>_<slug>, for examplesf-legs-bnd-0035_band_lateral_walk. See Using the catalog for the codes. - Write
exercise.json. Copy an existing exercise and change it. Equipment and muscles must use the values intaxonomy/;pnpm validaterejects anything else. - Add media (optional). Put the video in the same folder and run
pnpm mediato compress it and generate the previews. See Media standards. - Validate. Run
pnpm validate. You do not need to runpnpm buildor commitdist/orlocales/: a workflow rebuilds and commits them after the merge. - Open a pull request. Say where any new data or media came from and under which license.
The English text is in exercise.json; locales/ is generated, so don't edit it. Other languages are synced through Weblate.
Media must be your own work or licensed to you. Never add images or videos from other exercise datasets or apps.
