When hub_models.json is updated, the catalog tables in docs/reference/supported-models.md should be automatically regenerated rather than manually maintained.
Proposal
Add a script (e.g. scripts/generate_supported_models_doc.py) that:
- Reads
src/winml/modelkit/data/hub_models.json
- Groups models by task and generates the markdown tables
- Updates
docs/reference/supported-models.md in-place (preserving the header and non-generated sections)
This could also be integrated into CI to verify the doc stays in sync with the JSON data.
Context
From PR #912 review discussion — @xieofxie suggested using a script so the doc is automatically updated whenever hub_models.json changes.
When
hub_models.jsonis updated, the catalog tables indocs/reference/supported-models.mdshould be automatically regenerated rather than manually maintained.Proposal
Add a script (e.g.
scripts/generate_supported_models_doc.py) that:src/winml/modelkit/data/hub_models.jsondocs/reference/supported-models.mdin-place (preserving the header and non-generated sections)This could also be integrated into CI to verify the doc stays in sync with the JSON data.
Context
From PR #912 review discussion — @xieofxie suggested using a script so the doc is automatically updated whenever
hub_models.jsonchanges.