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

Function updateSidebars

scripts/move-doc.ts:194–209  ·  view source on GitHub ↗

* Rewrite references to the moved doc in `sidebars.js`. A doc-item entry references it by id, while * a `link`-type entry references it by URL (`href: '/x'`) — both must be updated or the URL ones * 404, and the sidebar renders site-wide so one stale href breaks the build on every page. Each * to

(
  content: string,
  swaps: ReadonlyArray<readonly [from: string, to: string]>,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected