Repository navigation
Docs: Fix the broken asyncRequireModulePath anchor - #2190
Conversation
Sets the `asyncRequireModulePath` heading id explicitly, so Docusaurus finds the `#asyncrequiremodulepath` anchor, which raw `<a name>` tags do not provide. Changelog: [Internal]
|
Thanks, but doesn't this break I think the issue here is really that the link in #2180 was wrong (it should've pointed to |
Metro review: Looks goodRisk: low · Commit: The PR swaps the raw No findings. Verified
Not run: markdownlint-cli2 was not run. The website builds ran in scratch copies with two environment-only tweaks: no Automated review by Claude. Advisory only: it never approves or blocks, and a maintainer makes the call. |
robhogan
left a comment
There was a problem hiding this comment.
Amended to just fix the link rather than change the anchor
Summary
#2180 links to
#asyncrequiremodulepathindocs/Configuration.md, backed by<a name="asyncrequiremodulepath"></a>. Docusaurus doesn't count raw HTML anchors in its broken anchor check, so the website build fails, and the website deploy onmainhas failed since #2180.The heading sets its id explicitly instead,
{#asyncrequiremodulepath}, which is also its id before the "Deprecated" label was added, so old links keep working.Changelog: [Internal]
Test plan
yarn buildinwebsite/(Node 22) fails onmainwith "Broken anchor on source page path = /docs/configuration: linking to #asyncrequiremodulepath", and succeeds with this change. The built page hasid="asyncrequiremodulepath"on the heading.prettier --checkandmarkdownlint-cli2pass ondocs/Configuration.md.