Files
Sylvestre Ledru b7646161c5 Bug 2060009 - Fix duplicate documentation labels. r=ai-platform-reviewers
With autosectionlabel_maxdepth = 1, every page's H1 becomes a global
label, so two pages sharing a title collide.

 - mozinfo, WebIDL, AsyncShutdown, FirstStartup and Region carried an
   explicit (slug)= target left over from the reStructuredText
   conversion, immediately above an H1 generating the very same label.
   Drop the redundant target; the autosectionlabel one is identical and
   points at the same place, so existing refs keep working.
 - Give four generic titles a component-specific name: the TypeScript
   linter page, the ML inference architecture page, the Glean
   preferences page and the stylelint no-browser-refs-in-toolkit rule.
 - The eslint and stylelint enabling-rules pages used several H1s where
   they meant sections; demote the later ones so each page has a single
   H1.

./mach doc goes from 683 to 672 warnings (76 -> 65 duplicate labels).

Differential Revision: https://phabricator.services.mozilla.com/D315867
2026-08-04 17:49:00 +00:00
..