Skip to content

fix(docs-sync): resolve anchored cross-doc links; fix broken authored links#248

Merged
maksimzinchuk merged 2 commits into
mainfrom
fix/docs-sync-broken-links
Jun 23, 2026
Merged

fix(docs-sync): resolve anchored cross-doc links; fix broken authored links#248
maksimzinchuk merged 2 commits into
mainfrom
fix/docs-sync-broken-links

Conversation

@maksimzinchuk

Copy link
Copy Markdown
Collaborator

Summary

Fixes cross-doc links in docs-sync and broken authored links in framework docs.

  • resolveTarget left a cross-doc link unrewritten whenever its href carried a #fragment: the fragment was looked up as part of the path and never matched the source-to-target map, so the raw source-relative href leaked into the generated docs (e.g. vc-blade -> useBlade#banner-management). Now strips the #fragment/?query before resolving and re-appends it to the rewritten href.
  • Authored links in framework docs that pointed at non-synced targets:
    • migration/*.md and a .ts source file -> stable GitHub blob URLs
    • links to internal-only docs (useUserManagement, NotificationTemplate) -> unwrapped to plain text (no public target to resolve to)
  • Adds a links test covering anchored cross-doc resolution.

Test plan

  • cli/docs-sync link transformer tests pass, including the new anchored cross-doc case.

maksimzinchuk and others added 2 commits June 18, 2026 15:22
… links

docs-sync left a cross-doc link unrewritten whenever its href carried a
#fragment: resolveTarget looked the fragment up as part of the path and never
matched the source-to-target map, so the raw source-relative href leaked into
the generated docs (e.g. vc-blade -> useBlade#banner-management). Strip the
#fragment/?query before resolving and re-append it to the rewritten href.

Also fix authored links in framework docs that pointed at non-synced targets:
- migration/*.md and a .ts source file -> stable GitHub blob URLs
- links to internal-only docs (useUserManagement, NotificationTemplate) ->
  unwrapped to plain text (no public target to resolve to)

Adds a links test covering anchored cross-doc resolution.
@maksimzinchuk maksimzinchuk merged commit 4bb5a7e into main Jun 23, 2026
4 checks passed
@maksimzinchuk maksimzinchuk deleted the fix/docs-sync-broken-links branch June 23, 2026 08:52
@github-actions

Copy link
Copy Markdown

📦 Preview published for commit 6401a93

Install the preview with dist-tag:

npm install @vc-shell/framework@pr-248

Or pin to the exact commit:

npm install @vc-shell/[email protected]

Published packages (dist-tag pr-248, version 2.1.0-pr248.6401a93):

  • @vc-shell/framework
  • @vc-shell/api-client-generator
  • @vc-shell/create-vc-app
  • @vc-shell/config-generator
  • @vc-shell/migrate
  • @vc-shell/ts-config
  • @vc-shell/mf-config
  • @vc-shell/mf-host
  • @vc-shell/mf-module
  • @vc-shell/vc-app-skill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant