MCPcopy Create free account
hub / github.com/OffchainLabs/arbitrum-docs / planLinkRewrite

Function planLinkRewrite

scripts/move-doc.ts:92–110  ·  view source on GitHub ↗

* Render one link's rewrite, preserving its written form (`@site/…`, absolute URL, relative * file/url, with any `#anchor`/`?query` suffix). Shared by both planners — the only thing that * differs between inbound and outbound is which side moved, expressed via `target`/`container`. * * Returns `

(
  record: LinkRecord,
  target: { abs: string; url: string | null },
  container: { abs: string; url: string | null },
  index: DocsIndex,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

planInboundFunction · 0.85
planOutboundFunction · 0.85

Calls 3

splitSuffixFunction · 0.90
renderRefFunction · 0.90
detectLinkStyleFunction · 0.90

Tested by

no test coverage detected