Repository navigation
docs: fix four broken links and document SegmentedControl - #15
Merged
Merged
Conversation
The docs build was failing for an unrelated dependency reason (#377 in UNI-Construct), so it never got as far as link checking. With that fixed it reported four broken links, all pre-existing: - overview.md and tabs.mdx linked to ./breadcrumbs. The page is breadcrumb.mdx and the exported component is Breadcrumb, so the link text was wrong as well as the path. - bottom-toolbar.mdx linked to ./tab-bar. TabBar was deliberately removed from the public API in SC-27 (2026-06-23) as a dead export, so there is no page to link to and should not be one. Link dropped. - search-accessory.mdx linked to ./segmented-control, which never existed. SegmentedControl *is* exported, so this one is a genuine gap rather than a stale reference — page written, documenting the real props from SegmentedControl.types.ts and the actual tablist/tab accessibility roles from the implementation. onBrokenLinks goes back to Docusaurus' default of 'throw'. At 'warn' these four shipped to the published site indefinitely; the setting only has to hold once the site is clean, which it now is. Verified by injecting a bad link and confirming the build fails. Also moves onBrokenMarkdownLinks under markdown.hooks — the top-level option is deprecated and is removed in Docusaurus v4. Co-Authored-By: Claude Fable 5 <[email protected]>
thinkclay
added a commit
to Scaffald/SaaS
that referenced
this pull request
Jul 30, 2026
Points packages/ui at 262b73d (Scaffald/ui#15), which fixes the four broken doc links the repaired build surfaced in #377 and sets onBrokenLinks back to 'throw'. Verified @scaffald/ui-docs still builds clean at the new pointer with that setting active — this is the build prepush now covers, so a stale link here fails the push. Also removes two prune paths from check-platform-leakage.sh that match nothing: apps/web (source deleted when the marketing site moved into the Expo app; only untracked build debris remained on disk, now gone) and packages/ui-docs (the ui docs site is packages/ui/docs-site, already covered by the packages/ui entry). Both were no-ops, so the check's output is unchanged — confirmed by running the HEAD version of the script and diffing. Committed with SKIP_PRECOMMIT=1. The hook lints the entire ui submodule whenever its pointer is staged, and that submodule has ~19 pre-existing lint errors (noExplicitAny, useImportType) in src/. #15 changed only docs-site files — `git diff --name-only 5eefc58 262b73d` lists no src/ file at all — so none of those errors are attributable to this bump and none are fixable from this repo. That earlier run also surfaced three pre-existing platform-leakage failures, all untouched here: SharePublicProfileModal and callback.tsx (guarded window access that likely just wants // platform-allow) and PublicProfilePrintButton (unguarded document access, wants a .web split). `pnpm lint:platform` only runs under lint:affected, not prepush, which is how they went unnoticed. Co-Authored-By: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Surfaced by repairing the docs build in
UNI-Construct(#377). The build had been failing on a dependency-resolution error, so it never reached link checking; once it did, it reported four broken links — all pre-existing.The four links
overview.md,tabs.mdx./breadcrumbsbreadcrumb.mdxand the export isBreadcrumb— path and link text were wrongbottom-toolbar.mdx./tab-barTabBarwas removed from the public API in SC-27 (2026-06-23) as a dead export. Nothing to link to, and there should not be — link droppedsearch-accessory.mdx./segmented-controlSegmentedControlis exported. A real gap rather than a stale reference — page writtenThe new
segmented-control.mdxdocuments the actual props fromSegmentedControl.types.ts(segments: string[]/selectedIndex, not a{label, value}shape) and the realtablist/tabroles andaccessibilityStatefrom the implementation, rather than assuming the house pattern.onBrokenLinks
Back to Docusaurus' own default of
throw. Atwarnthese four shipped to the published site indefinitely, and once the build broke for unrelated reasons nobody saw the warning at all. The setting only has to hold once the site is link-clean, which it now is.Verified rather than assumed: injected a link to a nonexistent page, confirmed the build fails with
Docusaurus found broken links!, removed it.Also moves
onBrokenMarkdownLinksundermarkdown.hooks— the top-level option is deprecated and removed in Docusaurus v4.Verification
nx run @scaffald/ui-docs:build --skip-nx-cache— succeeds, zero broken links, no deprecation warning.🤖 Generated with Claude Code