Skip to content

docs: publish model accuracy report via mkdocs from main#975

Merged
KayMKM merged 1 commit into
mainfrom
yuesu/publish-reports-via-mkdocs
Jun 25, 2026
Merged

docs: publish model accuracy report via mkdocs from main#975
KayMKM merged 1 commit into
mainfrom
yuesu/publish-reports-via-mkdocs

Conversation

@KayMKM

@KayMKM KayMKM commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Moves the model accuracy report out of the hand-maintained gh-pages branch and into main under docs/reports/, so it is version-controlled and published by the docs workflow (option C). Also fixes the report's displayed WinML CLI version (0.1.00.2.0).

Previously reports/ lived only on gh-pages and was edited directly on the built site, so source and published content drifted and manual edits were overwritten on the next mike deploy. Releases are infrequent, so the extra per-version copy of the report is an acceptable tradeoff.

Changes

  • Move reports/docs/reports/ (model_accuracy_report.html, download_report.py, README.md).
  • mkdocs.yml: exclude download_report.py and README.md from the built site via exclude_docs; only the HTML is published (as a versioned static asset).
  • docs/reference/supported-models.md: link to the report with a source-relative path (../reports/model_accuracy_report.html) so it resolves within each docs version. mkdocs rewrites it to ../../reports/model_accuracy_report.html.
  • Report: bump subtitle WinML CLI 0.1.00.2.0.
  • download_report.py / README.md: update prose from the gh-pages staging flow to the new PR-based refresh flow (script default output is docs/reports/model_accuracy_report.html).
  • pyproject.toml: add a ruff per-file-ignore for the relocated download script (mirrors scripts/download_rules.py).
  • .pre-commit-config.yaml: add --unsafe to check-yaml so mkdocs-material's custom !!python/name: tags don't block commits that touch mkdocs.yml.

Verification

  • mkdocs build succeeds; docs/reports/model_accuracy_report.html is published under reports/, while download_report.py and README.md are excluded.
  • The supported-models link rewrites to ../../reports/model_accuracy_report.html (resolves correctly within a version) with no broken-link warning.
  • ruff check docs/reports/download_report.py passes.

Follow-ups

  • The old top-level /reports/ on gh-pages is now superseded by the versioned copy and can be removed from gh-pages in a separate cleanup so there is a single canonical location.
  • The 0.1.00.2.0 edit is on the published HTML only; the report generator in the private gim-home/ModelKitArtifacts repo should also emit the correct version so the next download_report.py refresh doesn't reintroduce 0.1.0.

Move the reports/ folder (model_accuracy_report.html, download_report.py, README.md) from the gh-pages branch into docs/reports/ on main so the report is version-controlled and published by the docs workflow instead of being hand-edited on gh-pages.

- mkdocs publishes the HTML as a versioned static asset; download_report.py and README.md are excluded from the built site via exclude_docs.
- supported-models.md links to the report with a source-relative path so it resolves within each docs version.
- Bump the report's displayed version: WinML CLI 0.1.0 -> 0.2.0.
- Update download_report.py/README prose for the new PR-based refresh flow.
- Add a ruff per-file-ignore for the relocated download script.
- check-yaml: add --unsafe so mkdocs.yml custom tags don't block commits.
@KayMKM KayMKM requested a review from a team as a code owner June 25, 2026 08:42
@KayMKM KayMKM merged commit 529a492 into main Jun 25, 2026
9 checks passed
@KayMKM KayMKM deleted the yuesu/publish-reports-via-mkdocs branch June 25, 2026 08:50
KayMKM added a commit that referenced this pull request Jun 25, 2026
…orts/ (#976)

## Summary

Fixes the published `0.2` docs version and cleans up the now-redundant
top-level `reports/` folder on `gh-pages`.

After #975 merged, the push-to-main docs deploy only refreshed the
**dev** version. The released **0.2** version was left stale: its
supported-models page still linked to the old top-level report, and
`0.2/reports/` had no report file. This mirrors the dev result into
`0.2` and removes the old top-level `reports/` folder (superseded by the
per-version `docs/reports/` now published under each docs version).

## Changes

- **Add** `0.2/reports/model_accuracy_report.html` — copied verbatim
from the freshly deployed `dev` build (WinML CLI **0.2.0**).
- **0.2/reference/supported-models/index.html** — update the report link
from the old absolute `.../reports/model_compatibility_report.html` to
the version-relative `../../reports/model_accuracy_report.html` ("Model
Accuracy Report").
- **0.2/search/search_index.json** — update the matching link text
`model compatibility report` → `Model Accuracy Report` (single-phrase
change in the minified index) so search results stay consistent with the
page.
- **Remove** the top-level `reports/` folder (`README.md`,
`download_report.py`, `model_accuracy_report.html` — the stale 0.1.0
copy).

## Verification

- `0.2/reports/` contains only the HTML; the report displays **WinML CLI
0.2.0**.
- The `0.2` supported-models link and search index now match the `dev`
version exactly.
- Top-level `reports/` is fully removed; the report remains available
per-version at `.../<version>/reports/model_accuracy_report.html`.
- `search_index.json` remains valid JSON (net −5 chars, single phrase
replaced).

## Notes

- Edited the built site directly (the standard way to patch an
already-released `mike` version) rather than re-running `mike deploy`,
which on a Windows runner rewrites file modes across all ~93 pages of
`0.2/` and would bury this 2-file change in noise.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants