Skip to content

docs: propagate equation-label / SVG copy-paste fixes across stats/base/dists/*#11799

Merged
kgryte merged 1 commit intodevelopfrom
philipp/fix-propagation-2026-04-26
Apr 27, 2026
Merged

docs: propagate equation-label / SVG copy-paste fixes across stats/base/dists/*#11799
kgryte merged 1 commit intodevelopfrom
philipp/fix-propagation-2026-04-26

Conversation

@Planeshifter
Copy link
Copy Markdown
Member

Description

Propagating fixes merged to develop between 2026-04-25 16:41 UTC-7 and 2026-04-26 05:57 UTC-7 to sibling packages.

docs: propagate kumaraswamy equation-label fix from 692d07b

Three packages carry the same class of copy-paste error fixed in 692d07b: the <equation> label= / data-equation= attributes and the corresponding SVG filenames do not match the containing package name. Each site is corrected to align with its sibling pages and the actual package path.

  • stats/base/dists/chisquare/quantile: renames label and SVG from chisquared_quantile_function to chisquare_quantile_function (trailing d dropped to match package name and all sibling equations).
  • stats/base/dists/chi/cdf: renames label and SVG from chi_chi_cdf to chi_cdf (doubled chi_ prefix collapsed).
  • stats/base/dists/halfnormal/stdev: renames label from half_normal_stdev to halfnormal_stdev (underscore separator removed; no SVG on disk for this page).

Related Issues

None.

Questions

No.

Other

Validation:

  • Pattern search ran across all 47 packages under stats/base/dists/*, comparing every eq:<x>_… label, data-equation="eq:<x>_…" attribute, equation_<x>_….svg reference, and on-disk docs/img/equation_<x>_….svg filename against the containing package directory name (with -_ ↔ `` collapsing for compound names like discrete-uniform, `negative-binomial`, `pareto-type1`, `truncated-normal`).
  • Two independent reads confirmed the defect at each shipped target site; sibling pages within each affected package use the corrected naming consistently (chisquare/{mean,cdf,pdf,kurtosis,entropy}, chi/{pdf,mean,…}, halfnormal/{mean,mode,kurtosis,entropy,logpdf}).
  • Style-consistency pass confirmed each patch matches the surrounding package's equation-block convention (no live <div> added or removed; SVG URL pinned-commit hash preserved as in 692d07b).

Deliberately excluded — flagged needs-human and dropped from this run:

  • stats/base/dists/chi/quantile — the label chi_chi_quantile_function is similarly doubled, but the underlying formula Q(p; k) = 2·P^-1(p, k/2) is the chi-squared quantile, not the chi quantile. The whole equation block was copy-pasted from chisquare/quantile, not just the label. Renaming the label without correcting the math would mask the deeper bug.
  • stats/base/dists/gamma/quantile — the comment-tag <equation … data-equation="eq:quantile_function"> carries an anomalous data-equation attribute (no sibling has data-equation on the comment-tag at all), inconsistent with the live <div data-equation="eq:gamma_quantile_function"> on the next line. Removing vs. renaming requires editorial judgment about stdlib's equation-block convention; not a direct analog of the source rename.

Checklist

AI Assistance

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

This PR was generated by an automated fix-propagation routine running in Claude Code. The routine enumerated fix: / docs: commits merged to develop in the last 24 hours, derived a search signature from each, ran cross-package searches for sibling sites with the same defect, validated each candidate by re-reading the file in full, and shipped only sites where the defect was objectively present and the patch was a direct mechanical analog of the source fix. Sites requiring editorial judgment or fixes beyond the source pattern's scope were rejected and listed under "deliberately excluded" above.


@stdlib-js/reviewers


Generated by Claude Code

…es across `stats/base/dists/*`

Propagates fix from 692d07b ("docs: fix copy & paste error in LaTeX
equation label and SVG file in `stats/base/dists/kumaraswamy`") to
sibling distribution packages whose `<equation>` labels and SVG
filenames still reference a different distribution name than the
containing package.

- `stats/base/dists/chisquare/quantile`: `eq:chisquared_quantile_function` -> `eq:chisquare_quantile_function`; SVG renamed accordingly
- `stats/base/dists/chi/cdf`: `eq:chi_chi_cdf` -> `eq:chi_cdf` (drop doubled prefix); SVG renamed accordingly
- `stats/base/dists/halfnormal/stdev`: `eq:half_normal_stdev` -> `eq:halfnormal_stdev`
@stdlib-bot stdlib-bot added the Statistics Issue or pull request related to statistical functionality. label Apr 26, 2026
@stdlib-bot
Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
stats/base/dists/chi/cdf $\color{red}277/279$
$\color{green}+99.28%$
$\color{red}23/24$
$\color{green}+95.83%$
$\color{green}4/4$
$\color{green}+100.00%$
$\color{red}277/279$
$\color{green}+99.28%$
stats/base/dists/chisquare/quantile $\color{green}180/180$
$\color{green}+100.00%$
$\color{green}5/5$
$\color{green}+100.00%$
$\color{green}2/2$
$\color{green}+100.00%$
$\color{green}180/180$
$\color{green}+100.00%$
stats/base/dists/halfnormal/stdev $\color{green}168/168$
$\color{green}+100.00%$
$\color{green}8/8$
$\color{green}+100.00%$
$\color{green}2/2$
$\color{green}+100.00%$
$\color{green}168/168$
$\color{green}+100.00%$

The above coverage report was generated for the changes in this PR.

@Planeshifter Planeshifter marked this pull request as ready for review April 27, 2026 03:10
@Planeshifter Planeshifter requested review from a team and kgryte April 27, 2026 03:10
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label Apr 27, 2026
@kgryte kgryte added Documentation Improvements, additions, or changes to documentation. and removed Needs Review A pull request which needs code review. labels Apr 27, 2026
@kgryte kgryte merged commit 31b9282 into develop Apr 27, 2026
73 checks passed
@kgryte kgryte deleted the philipp/fix-propagation-2026-04-26 branch April 27, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements, additions, or changes to documentation. Statistics Issue or pull request related to statistical functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants