Extract calculator teaser metadata
This commit is contained in:
@@ -14,7 +14,7 @@ This repository hosts the modern SvelteKit experience for **howdoyouconvert.com*
|
||||
4. When you are ready to verify the production bundle, run `npm run build` and optionally `npm run preview` or `npm run start` to exercise the compiled `build` folder.
|
||||
|
||||
## Data pipeline
|
||||
- The single source of truth for every published calculator is `calculators_list.md` in the repo root. The **Active Calculators** table at the top defines which conversions are shipped; the trailing backlog checklist stores future work.
|
||||
- The single source of truth for every published calculator is `calculators_list.md` in the repo root. The **Active Calculators** table at the top defines which conversions are shipped, and the completion checklist underneath should match the same set of Svelte calculators.
|
||||
- After editing `calculators_list.md`, run `python migrate.py` from the repo root. The script reads the registry, infers categories/types based on the conversion factor column, and writes the autogenerated `hdyc-svelte/src/lib/data/calculators.ts` file.
|
||||
- `calculators.ts` contains the `calculators` array, the `categories` map, and helper lookup/search functions. **Do not edit it manually**—regenerate it through `migrate.py` whenever the registry changes.
|
||||
- The generator also populates descriptions, hidden flags, and label metadata, so confirm the regenerated file before committing.
|
||||
|
||||
Reference in New Issue
Block a user