build: format the generated release docs with the latest prettier #7295
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 162 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.305
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7295"
general
weight: 0.35
sunchao
Which issue does this PR close?
Part of #6550. Found while generating the 1.2.0 release docs (#7292).
Rationale for this change
dev/generate-release-docs.shformats the generated pages withnpx prettier, which runs whichever prettier version is installed locally or cached. CI runsprettier --check "*/.md"with the latest prettier (npm install -g prettier). The two disagreed on the 1.2.0 docs. Generated with prettier 3.2.5, 40 of the compatibility pages failed the CI check under 3.9.10, because the newer version wants a blank line before<!--END:EXPR_COMPAT-->after a list. The fix on #7292 was a second commit that added that line to each page.What changes are included in this PR?
dev/generate-release-docs.shrunsnpx --yes prettier@latest, the same version CI installs, with a comment that says why.docs/source/contributor-guide/release_process.mdnotes that the script formats with the latest prettier and so needs network access to npm.How are these changes tested?
bash -npasses on the script. I rannpx --yes prettier@latest --checkover the generated pages on the 1.2.0 docs branch before and after the fix. It reported 40 files before and none after. I did not rerun the whole script with this change, because it runs five Maven builds.