Skip to content

Restructure the Guides section into journey-ordered story pages - #1134

Closed
oduameh wants to merge 20 commits into
mainfrom
docs/guides-user-story-restructure
Closed

Restructure the Guides section into journey-ordered story pages#1134
oduameh wants to merge 20 commits into
mainfrom
docs/guides-user-story-restructure

Conversation

@oduameh

@oduameh oduameh commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Intent

The Guides section held 15 small pages with heavy overlap (proof server setup explained in 5 places, React and Next.js wallet connection near-duplicates, a two-part Compact JS sequence split across pages) and no reading order. This PR consolidates them into 7 pages that follow one developer journey (set up, get funded, build and deploy, connect a frontend, plan for the long term) plus a tiled landing page. Almost nothing is deleted: pages are merged, and every heading that had inbound links keeps its anchor on the destination page.

Where every page went

Old page Now lives at
run-proof-server development-environment#run-the-proof-server (full content, including the privacy note)
windows-compact-setup development-environment (Windows/WSL platform tab)
install-bun-runtime-midnight development-environment#install-bun
midnight-local-network local-to-testnet#local-network (including #fund-wallets)
configure-providers local-to-testnet#configure-providers
deploy-mn-app local-to-testnet#deploy-to-preprod (full Preprod walkthrough, StepsProvider flow intact)
compact-javascript-runtime work-with-compiled-contract (part 1: how it is generated)
use-compact-javascript-implementation work-with-compiled-contract (part 2: how to use it)
react-wallet-connect connect-wallet-frontend (Vite + React tab; content intact)
nextjs-wallet-connect connect-wallet-frontend (Next.js tab; hardcoded mnLace lookup replaced with the enumeration helper)
acquire-tokens kept, retitled "Fund your wallet"
generating-dust-programmatically kept (duplicated 400-line full-script block removed)
making-decision-on-contract-updatability kept, relabeled "Plan for contract updatability"
query-the-blockchain retired: taught raw @polkadot/api with no mention of the indexer path; its subscribe-to-blocks snippet moved to nodes/node-endpoints with its escape-sequence bugs fixed
_lace-wallet.mdx deleted: underscore-prefixed, unrouted, orphaned since /guides/lace-wallet was redirected to installation

Every old URL 308-redirects to its new home in a single hop (verified on the preview, 36 spot-checks).

  • Restructure the Guides section from 15 small, overlapping pages into 7 journey-ordered pages plus a tiled landing page: set up, get funded, build and deploy, work with the compiled contract, connect a frontend, plan for updatability.
  • Merges: development-environment (windows-compact-setup + install-bun-runtime-midnight + run-proof-server), local-to-testnet (midnight-local-network + configure-providers + deploy-mn-app), work-with-compiled-contract (compact-javascript-runtime + use-compact-javascript-implementation), connect-wallet-frontend (react-wallet-connect + nextjs-wallet-connect, as framework tabs).
  • Retires query-the-blockchain (raw @polkadot/api guide that never mentioned the indexer path); its subscribe-to-new-blocks snippet is salvaged into nodes/node-endpoints with the missing newline escapes fixed.
  • Every retired slug 308-redirects to its merged destination in one hop: 11 existing vercel.json rules retargeted in place, 13 new retired-slug rules, and 33 anti-chain rules above the three catch-alls that rewrite into /guides/:path* (229 -> 275 rules). Anchors that existed on retired pages carry explicit IDs on the merged pages so deep links keep resolving (#fund-wallets, #run-the-proof-server, provider IDs, deploy step IDs).
  • Tech-debt fixes riding along, each verified against the live source before changing: Compact install dir corrected to $HOME/.compact/bin (matches the developer-tools blog post), Bun PATH fallback corrected to $HOME/.bun/bin, curly-quote in a PATH export, checkRuntimeVersion('0.16.0'), compact 0.31.1 output sample, proof-server pins normalized (:latest for docker run, 8.1.0 for compose), midnight-local-dev version tables refreshed against that repo's actual pins (node 0.22.5, indexer 4.0.2, wallet-sdk 1.0.0), DApp Connector note bumped to 4.0.1, the fragile hardcoded window.midnight.mnLace lookup in the Next.js flow replaced with the enumeration helper (wallets inject under UUID keys per the v4 connector typings), an always-truthy getConnectionStatus() check fixed, a 400-line duplicated "full script" block cut, externally hosted screenshots (dev.to / github user-attachments) dropped, and two previously unused Lace Undeployed screenshots finally wired into the troubleshooting entry they were made for.

Type of Change

  • Documentation update (content fixes, new pages)
  • Site improvement (UI/UX, infrastructure)
  • New blog post
  • Other (please specify)

Related Links

  • Documentation page(s) updated (if applicable): /guides, /guides/development-environment, /guides/acquire-tokens, /guides/generating-dust-programmatically, /guides/local-to-testnet, /guides/work-with-compiled-contract, /guides/connect-wallet-frontend, /guides/making-decision-on-contract-updatability, /nodes/node-endpoints
  • Other relevant resources (if any): companion changes in src/theme/Navbar/Logo/index.tsx (Compact logo route patterns), docusaurus.config.js (client redirect /category/guides -> /guides), vercel.json, packages/tests/pipelines-urls.json (visual-regression/Lighthouse URL list), sdks/ inbound links

@oduameh
oduameh requested review from a team as code owners July 16, 2026 16:23
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
midnight-wiki Error Error Jul 17, 2026 9:57am

Request Review

@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown

Summary

Status Count
🔍 Total 317
🔗 Unique 141
✅ Successful 178
⏳ Timeouts 0
🔀 Redirected 19
👻 Excluded 1
❓ Unknown 0
🚫 Errors 136
⛔ Unsupported 2

Errors per input

Errors in docs/examples/_bboard/local-testing.mdx

Errors in docs/getting-started/quickstart.mdx

  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/examples/dapps/bboard (at 207:192) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/getting-started/hello-world (at 248:84) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/getting-started/installation (at 20:44) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/development-environment#run-the-proof-server (at 124:85) | File not found. Check if file exists and path is correct
  • [403] https://www.npmjs.com/package/create-mn-app (at 26:5) | Rejected status code: 403 Forbidden

Errors in docs/guides/acquire-tokens.mdx

  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/development-environment (at 13:11) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/generating-dust-programmatically (at 61:61) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/local-to-testnet (at 82:99) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/local-to-testnet#fund-wallets (at 19:61) | File not found. Check if file exists and path is correct

Errors in docs/guides/connect-wallet-frontend.mdx

  • [ERROR] error: (at 35:78) | Cannot resolve root-relative link '/api-reference/dapp-connector': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 619:3) | Cannot resolve root-relative link '/api-reference/dapp-connector': To resolve root-relative links in local files, provide a root dir

Errors in docs/guides/development-environment.mdx

  • [ERROR] error: (at 132:9) | Cannot resolve root-relative link '/compact/compilation-and-tooling/dev-tool-usage': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 92:1) | Cannot resolve root-relative link '/compact': To resolve root-relative links in local files, provide a root dir
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/getting-started/hello-world (at 638:81) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/acquire-tokens (at 637:3) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/relnotes/support-matrix (at 132:135) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/relnotes/support-matrix (at 170:76) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/relnotes/support-matrix (at 287:21) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/relnotes/support-matrix (at 568:76) | File not found. Check if file exists and path is correct

Errors in docs/guides/generating-dust-programmatically.mdx

  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/acquire-tokens (at 14:92) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/development-environment#run-the-proof-server (at 95:196) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/local-to-testnet#deploy-to-preprod (at 768:102) | File not found. Check if file exists and path is correct
  • [429] https://docs.midnight.network/ (at 768:359) | Rejected status code: 429 Too Many Requests
  • [429] https://docs.midnight.network/relnotes/support-matrix (at 83:67) | Rejected status code: 429 Too Many Requests

Errors in docs/guides/local-to-testnet.mdx

  • [ERROR] error: (at 392:64) | Cannot resolve root-relative link '/sdks/official/wallet-developer-guide': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 517:56) | Cannot resolve root-relative link '/sdks/official/midnight-js': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 67:50) | Cannot resolve root-relative link '/sdks/official/wallet-developer-guide': To resolve root-relative links in local files, provide a root dir
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/getting-started/hello-world (at 27:133) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/getting-started/hello-world (at 523:117) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/getting-started/hello-world (at 527:17) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/acquire-tokens (at 552:208) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/connect-wallet-frontend (at 751:38) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/development-environment (at 25:147) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/development-environment#run-the-proof-server (at 384:95) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/development-environment#run-the-proof-server (at 588:5) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/generating-dust-programmatically (at 440:172) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/work-with-compiled-contract (at 750:3) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/relnotes/network (at 666:5) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/relnotes/support-matrix (at 63:314) | File not found. Check if file exists and path is correct

Errors in docs/guides/making-decision-on-contract-updatability.mdx

  • [ERROR] error: (at 107:1) | Cannot resolve root-relative link '/api-reference/midnight-js/@midnight-ntwrk/midnight-js-contracts/type-aliases/DeployContractOptions': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 109:1) | Cannot resolve root-relative link '/api-reference/midnight-js/@midnight-ntwrk/midnight-js-contracts/type-aliases/DeployContractOptions': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 112:1) | Cannot resolve root-relative link '/api-reference/compact-runtime/functions/sampleSigningKey': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 116:6) | Cannot resolve root-relative link '/api-reference/midnight-js/@midnight-ntwrk/midnight-js-contracts/type-aliases/DeployedContract': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 122:1) | Cannot resolve root-relative link '/api-reference/midnight-js/@midnight-ntwrk/midnight-js-contracts/type-aliases/FoundContract#circuitmaintenancetx': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 124:1) | Cannot resolve root-relative link '/api-reference/midnight-js/@midnight-ntwrk/midnight-js-contracts/type-aliases/CircuitMaintenanceTxInterface': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 127:5) | Cannot resolve root-relative link '/api-reference/midnight-js/@midnight-ntwrk/midnight-js-contracts/type-aliases/CircuitMaintenanceTxInterface#insertverifierkey': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 128:30) | Cannot resolve root-relative link '/api-reference/midnight-js/@midnight-ntwrk/midnight-js-contracts/type-aliases/CircuitMaintenanceTxInterface#removeverifierkey': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 132:1) | Cannot resolve root-relative link '/api-reference/midnight-js/@midnight-ntwrk/midnight-js-contracts/type-aliases/FoundContract#contractmaintenancetx': To resolve root-relative links in local files, provide a root dir
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/guides/local-to-testnet#deploy-to-preprod (at 138:9) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/relnotes/support-matrix (at 55:32) | File not found. Check if file exists and path is correct

Errors in docs/guides/work-with-compiled-contract.mdx

  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/examples/dapps/bboard (at 560:116) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/relnotes/support-matrix (at 78:21) | File not found. Check if file exists and path is correct

Errors in docs/nodes/node-endpoints.mdx

Errors in docs/tokens/overview.mdx

  • [ERROR] error: (at 22:196) | Cannot resolve root-relative link '/concepts/dust-architecture': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 22:52) | Cannot resolve root-relative link '/concepts/dual-component-tokenomics': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 31:155) | Cannot resolve root-relative link '/examples/contracts/token-transfers': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 35:346) | Cannot resolve root-relative link '/sdks/community/openzeppelin-compact-contracts': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 37:149) | Cannot resolve root-relative link '/tokens/shielded-token': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 37:77) | Cannot resolve root-relative link '/tokens/unshielded-token': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 43:3) | Cannot resolve root-relative link '/guides/acquire-tokens': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 44:3) | Cannot resolve root-relative link '/guides/generating-dust-programmatically': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 48:3) | Cannot resolve root-relative link '/concepts/dual-component-tokenomics': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 49:3) | Cannot resolve root-relative link '/concepts/dust-architecture': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 50:3) | Cannot resolve root-relative link '/concepts/ledgers': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 51:3) | Cannot resolve root-relative link '/examples/contracts/token-transfers': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 52:3) | Cannot resolve root-relative link '/compact/standard-library/': To resolve root-relative links in local files, provide a root dir

Errors in docs/tutorials/bboard/bboard-cli-implementation.mdx

  • [ERROR] error: (at 1077:115) | Cannot resolve root-relative link '/guides/local-to-testnet#local-network': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 68:70) | Cannot resolve root-relative link '/guides/local-to-testnet#local-network': To resolve root-relative links in local files, provide a root dir
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/bboard/bboard-api-implementation (at 20:54) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/bboard/bboard-cli#run-the-cli (at 1116:66) | File not found. Check if file exists and path is correct

Errors in docs/tutorials/zk-loan/attestation-api.mdx

  • [ERROR] error: (at 481:139) | Cannot resolve root-relative link '/compact/reference/explicit-disclosure': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 492:25) | Cannot resolve root-relative link '/guides/local-to-testnet#local-network': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 495:5) | Cannot resolve root-relative link '/guides/development-environment#run-the-proof-server': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 510:75) | Cannot resolve root-relative link '/relnotes/support-matrix': To resolve root-relative links in local files, provide a root dir
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/cli (at 372:155) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/cli (at 528:121) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/cli (at 536:6) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/smart-contract (at 16:1) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/smart-contract (at 179:169) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/smart-contract (at 26:49) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/smart-contract (at 477:241) | File not found. Check if file exists and path is correct

Errors in docs/tutorials/zk-loan/cli.mdx

  • [ERROR] error: (at 113:34) | Cannot resolve root-relative link '/guides/local-to-testnet#local-network': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 1738:78) | Cannot resolve root-relative link '/guides/local-to-testnet#local-network': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 993:299) | Cannot resolve root-relative link '/concepts/how-midnight-works/midnight-combined-model': To resolve root-relative links in local files, provide a root dir
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/attestation-api (at 103:180) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/attestation-api (at 16:91) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/attestation-api (at 26:43) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/attestation-api (at 342:259) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/smart-contract (at 107:145) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/smart-contract (at 16:4) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/smart-contract (at 1752:36) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/smart-contract (at 26:12) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/smart-contract (at 284:80) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/smart-contract (at 37:176) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/docs/tutorials/zk-loan/smart-contract (at 516:137) | File not found. Check if file exists and path is correct

Errors in sdks/community/wallets/integration.mdx

Errors in sdks/community/wallets/reference.mdx

Errors in sdks/community/wallets/wallets-overview.mdx

Errors in sdks/official/midnight-js.mdx

  • [ERROR] error: (at 282:133) | Cannot resolve root-relative link '/api-reference/dapp-connector': To resolve root-relative links in local files, provide a root dir
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/guides/development-environment#run-the-proof-server (at 27:77) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/relnotes/support-matrix (at 120:22) | File not found. Check if file exists and path is correct
  • [ERROR] file:///home/runner/work/midnight-docs/midnight-docs/sdks/official/wallet-developer-guide (at 213:176) | File not found. Check if file exists and path is correct
  • [ERROR] http://localhost:6300/ (at 155:17) | Connection refused - server may be down or port blocked
  • [ERROR] http://localhost:8088/api/v4/graphql (at 152:13) | Connection refused - server may be down or port blocked

Errors in sdks/troubleshoot/index.mdx

  • [ERROR] error: (at 114:21) | Cannot resolve root-relative link '/relnotes/support-matrix': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 147:15) | Cannot resolve root-relative link '/guides/development-environment#run-the-proof-server': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 186:58) | Cannot resolve root-relative link '/sdks/error-reference/wallet-sdk': To resolve root-relative links in local files, provide a root dir
  • [ERROR] error: (at 83:82) | Cannot resolve root-relative link '/sdks/error-reference/midnight-js': To resolve root-relative links in local files, provide a root dir

Redirects per input

Redirects in docs/examples/_bboard/local-testing.mdx

Redirects in docs/getting-started/quickstart.mdx

Redirects in docs/guides/acquire-tokens.mdx

Redirects in docs/guides/connect-wallet-frontend.mdx

Redirects in docs/guides/development-environment.mdx

Redirects in docs/guides/index.mdx

Redirects in docs/guides/local-to-testnet.mdx

Redirects in docs/guides/making-decision-on-contract-updatability.mdx

Redirects in docs/guides/run-proof-server.mdx

Redirects in docs/guides/work-with-compiled-contract.mdx

Redirects in docs/tokens/overview.mdx

Redirects in docs/tutorials/bboard/bboard-cli-implementation.mdx

Redirects in docs/tutorials/zk-loan/attestation-api.mdx

Redirects in docs/tutorials/zk-loan/cli.mdx

Redirects in sdks/community/wallets/integration.mdx

Redirects in sdks/community/wallets/reference.mdx

Redirects in sdks/community/wallets/wallets-overview.mdx

Redirects in sdks/official/midnight-js.mdx

Full Github Actions output

oduameh added 10 commits July 16, 2026 17:29
… guide

Combine windows-compact-setup, install-bun-runtime-midnight, and
run-proof-server into a single guide covering platform setup (macOS/
Linux and Windows WSL tabs), the Compact compiler, the VS Code
extension, the proof server, and an optional Bun section.

Fixes riding along:
- correct the Compact install dir to $HOME/.compact/bin (matches the
  developer-tools release notes and blog post)
- correct the Bun PATH fallback to $HOME/.bun/bin
- fix a trailing curly quote in the Bun PATH export
- align compact check output with the current 0.31.1 toolchain
- standardize the proof server image on the :latest tag with a
  compatibility-matrix pointer
- drop externally hosted screenshots (dev.to / github user-attachments)
- retarget inbound links (quickstart, 1010 troubleshoot, proof-server
  release notes, zk-loan attestation) to the new page
…-testnet

Combine midnight-local-network, configure-providers, and deploy-mn-app
into a single journey page: run a local network, configure the
Midnight.js providers, then deploy to Preprod and Preview. Anchors from
the retired pages (notably #fund-wallets and the provider IDs) are
preserved as explicit heading IDs.

Fixes riding along:
- refresh the Docker image and Wallet SDK version tables against the
  current midnight-local-dev repository pins (node 0.22.5, indexer
  4.0.2, wallet-sdk 1.0.0, midnight-js 4.1.1)
- fix the double colon in the prerequisites lead-in
- deduplicate the faucet walkthrough into a link to acquire-tokens
- insert the previously unused Lace Undeployed screenshots into the
  invalid-wallet-address troubleshooting entry
- retarget inbound links (bboard and zk-loan tutorials, acquire-tokens,
  contract-updatability) to the new page
…ntract

Combine compact-javascript-runtime (how the JavaScript implementation
is generated and structured) and use-compact-javascript-implementation
(import, witnesses, circuits, unit tests) into one page, since the two
were an explicit part-1/part-2 sequence.

Fixes riding along:
- update checkRuntimeVersion example to the current 0.16.0 runtime
- swap the two retired slugs in the Compact navbar-logo route patterns
  for the new work-with-compiled-contract slug

Known remaining inbound link: docs/compact/test-and-debug.mdx still
points at the retired slug; that file is owned by the Compact team and
the vercel.json redirect covers visitors.
Combine react-wallet-connect and nextjs-wallet-connect, which were
near-duplicates, into connect-wallet-frontend with a Vite + React tab
and a Next.js tab sharing one intro, troubleshooting section, and
reference list. Per-tab headings carry explicit IDs so deep links from
the retired pages keep resolving.

Fixes riding along:
- port the selectWallet enumeration helper into the Next.js flow,
  replacing the fragile hardcoded window.midnight.mnLace lookup
  (wallets inject their Initial API under a UUID key)
- fix the always-truthy getConnectionStatus() check in the Next.js
  example to test status === 'connected'
- update the DApp Connector API version note to 4.0.1
- drop the inert redirects: frontmatter field (real redirects live in
  vercel.json) and a link to a personal example repository
- retitle acquire-tokens to "Fund your wallet", add explicit
  #get-tnight / #delegate-tdust anchors, an intro that follows on from
  environment setup, a cross-link to the programmatic DUST guide, and a
  next-steps handoff to local-to-testnet; soften the unverified claim
  that the legacy HEX faucet format will be dropped, and fix curly
  quotes in the rate-limit error sample
- generating-dust: cut the 400-line duplicated full-script details
  block in favor of a one-line pointer, link the faucet path for
  readers who only need the Lace UI flow, point the proof-server step
  at the canonical section, bump the compose pin to proof-server 8.1.0,
  and replace the hardcoded production URL with a relative link
- contract updatability: sidebar label "Plan for contract updatability"
- renumber sidebar positions to the new journey order (2, 3, 7)
- tokens/overview: update link text to the new page title
The guide taught raw @polkadot/api block subscription without
mentioning the indexer GraphQL API, which is the recommended query
path for DApps, and nodes/node-endpoints already covers RPC access.

Salvage its one unique piece, the subscribe-to-new-blocks snippet,
into node-endpoints with the missing newline escapes fixed, plus a
pointer to indexerPublicDataProvider for contract-state queries.
Replace the generated-index category page with an index doc modeled on
the tutorials landing page: a short framing paragraph plus PersonaTiles
for the seven guides in journey order. Add a client-side redirect from
/category/guides to /guides so local and preview builds match the
Vercel redirect.
docs/guides/_lace-wallet.mdx was unrouted (underscore-prefixed) and
nothing imports it; /guides/lace-wallet traffic already redirects to
/getting-started/installation. Repoint the two stale links in the
(also unrouted) bboard local-testing partial: the lace-wallet.mdx file
link that no longer resolves and the retired run-proof-server guide.
- retarget the 11 existing rules whose destinations were retired guide
  slugs, so they point straight at the merged pages (single hop)
- add a labeled block redirecting every retired slug, plus the
  generated-index /category/guides URL, to its merged destination
- add per-slug rules above the three :path* catch-alls that rewrite
  into /guides/, so historical paths like /next/how-to/react-wallet-
  connect resolve in one hop instead of chaining
- verified: no duplicate sources, and no new redirect chains (the five
  pre-existing chains on unrelated routes are untouched)

229 rules before, 275 after, well under Vercel's 1,024 limit.
The sdks/ section and packages/tests/pipelines-urls.json live outside
docs/ and were missed by the first inbound-link sweep. Point the
wallet-connect, proof-server, and local-network references at the
merged guides, refresh the visual-regression/Lighthouse URL list to
the new section layout, and swap two absolute lace-wallet links for
their long-standing redirect destination.
@oduameh
oduameh force-pushed the docs/guides-user-story-restructure branch from f8da8f6 to 2a174a9 Compare July 16, 2026 16:29
The guides restructure introduces explicit heading anchors ({#id}), which
Docusaurus supports natively but mdx2vast cannot parse as MDX expressions,
crashing the Vale job. TokenIgnores strips them before conversion.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

vale

docs/guides/work-with-compiled-contract.mdx|512 col 93| [Midnight.DeveloperVoice] Avoid marketing language in developer documentation.
docs/guides/work-with-compiled-contract.mdx|520 col 162| [Midnight.Readability] 'is encoded' should be in the active voice.
docs/guides/work-with-compiled-contract.mdx|550 col 12| [Midnight.Readability] 'being locked' should be in the active voice.
docs/guides/work-with-compiled-contract.mdx|560 col 62| [Midnight.Readability] 'is generated' should be in the active voice.
docs/guides/local-to-testnet.mdx|1 col 1| [Midnight.FleschReadabilityGradeLevel] Try to keep the Flesch-Kincaid grade level (8.01) below 8.
docs/guides/local-to-testnet.mdx|3 col 393| [Midnight.Readability] 'is distributed' should be in the active voice.
docs/guides/local-to-testnet.mdx|73 col 138| [Midnight.Readability] 'are pinned' should be in the active voice.
docs/guides/local-to-testnet.mdx|98 col 15| [Midnight.DeveloperVoice] Avoid marketing language in developer documentation.
docs/guides/local-to-testnet.mdx|142 col 17| [Midnight.Readability] 'is provided' should be in the active voice.
docs/guides/local-to-testnet.mdx|150 col 5| [Midnight.Readability] 'are prompted' should be in the active voice.
docs/guides/local-to-testnet.mdx|165 col 5| [Midnight.Readability] 'are prompted' should be in the active voice.
docs/guides/local-to-testnet.mdx|255 col 5| [Midnight.HeadingSentenceCase] 'Set the network ID' should be in sentence case.
docs/guides/local-to-testnet.mdx|475 col 20| [Midnight.Readability] 'is initialized' should be in the active voice.
docs/guides/local-to-testnet.mdx|670 col 4| [Midnight.HeadingSentenceCase] 'Deploy to Preview' should be in sentence case.
docs/guides/local-to-testnet.mdx|715 col 13| [Midnight.DeveloperVoice] Avoid marketing language in developer documentation.
docs/guides/local-to-testnet.mdx|746 col 206| [Midnight.Readability] 'is confirmed' should be in the active voice.

Comment thread docs/guides/connect-wallet-frontend.mdx
Comment thread docs/guides/connect-wallet-frontend.mdx
Comment thread docs/guides/connect-wallet-frontend.mdx Outdated
Comment thread docs/guides/connect-wallet-frontend.mdx
Comment thread docs/guides/connect-wallet-frontend.mdx Outdated
Comment thread docs/guides/generating-dust-programmatically.mdx Outdated
Comment thread docs/guides/work-with-compiled-contract.mdx Outdated
Comment thread docs/guides/work-with-compiled-contract.mdx Outdated
Comment thread docs/guides/work-with-compiled-contract.mdx Outdated
Comment thread docs/guides/work-with-compiled-contract.mdx Outdated
Points the Docker, Discord, and Node.js links at their final
destinations flagged by the link checker.
Comment thread docs/guides/local-to-testnet.mdx
Comment thread docs/guides/local-to-testnet.mdx
Comment thread docs/guides/local-to-testnet.mdx Outdated
Comment thread docs/guides/local-to-testnet.mdx Outdated
Comment thread docs/guides/local-to-testnet.mdx Outdated
Comment thread docs/guides/local-to-testnet.mdx Outdated
Comment thread docs/guides/local-to-testnet.mdx Outdated
Comment thread docs/guides/work-with-compiled-contract.mdx Outdated
Comment thread docs/guides/work-with-compiled-contract.mdx Outdated
Comment thread docs/guides/work-with-compiled-contract.mdx Outdated
@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown

🚀 Preview Deployment

Deployment Ready

🔗 Preview URL: https://pr-1134-midnight-docs.vercel.app

📝 Latest commit: 0683164
Updated: Jul 17, 2026, 10:04 AM UTC


This preview updates automatically when you push new commits to this PR.

Verified against the installer script and a live install: the curl
installer places the compact CLI in $HOME/.local/bin (cargo-dist
fallback chain), while compact update populates $HOME/.compact with
toolchain versions. The troubleshooting PATH export now points at the
directory that actually contains the binary.
Comment thread docs/guides/development-environment.mdx
Comment thread docs/guides/connect-wallet-frontend.mdx Outdated
Comment thread docs/guides/connect-wallet-frontend.mdx Outdated
Comment thread docs/guides/development-environment.mdx Outdated
Comment thread docs/guides/work-with-compiled-contract.mdx Outdated
Comment thread docs/guides/work-with-compiled-contract.mdx Outdated
Comment thread docs/guides/local-to-testnet.mdx Outdated
Rewrites every actionable Vale finding on the PR: passive voice to
active, marketing words removed, second-person fixes, and the landing
page journey list restructured to satisfy the Oxford comma rule.
Also applies the peer review frontmatter suggestions: descriptions
into the 120 to 160 character range, five or more lowercase tags.

Left as is: SPDX license boilerplate (repo-standard legal text),
file-level readability scores, and sentence-case heading flags that
are proper-noun false positives (macOS, Preview, network ID).
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.

@@ -0,0 +1,621 @@
---

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] reported by reviewdog 🐶
[Midnight.FleschReadabilityGradeLevel] Try to keep the Flesch-Kincaid grade level (9.17) below 8.

@@ -0,0 +1,638 @@
---

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] reported by reviewdog 🐶
[Midnight.FleschReadabilityGradeLevel] Try to keep the Flesch-Kincaid grade level (8.11) below 8.

Comment thread docs/guides/index.mdx
@@ -0,0 +1,63 @@
---

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] reported by reviewdog 🐶
[Midnight.FleschReadabilityGradeLevel] Try to keep the Flesch-Kincaid grade level (9.30) below 8.

@@ -0,0 +1,763 @@
---

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] reported by reviewdog 🐶
[Midnight.FleschReadabilityGradeLevel] Try to keep the Flesch-Kincaid grade level (8.02) below 8.

@nstanford5 nstanford5 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a massive PR with no context in the description. I started commenting on files that were being deleted, only to discover through inference what your intentions are. Rather than me guessing what you are trying to achieve here, please provide a detailed description of your intentions in the PR description, so that I don't spend time going down the rabbit hole of 42 file changes to discover the intent myself.

Comment thread docs/guides/run-proof-server.mdx
Comment thread docs/guides/deploy-mn-app.mdx Outdated
Comment thread docs/guides/react-wallet-connect.mdx Outdated
Comment thread docs/guides/nextjs-wallet-connect.mdx Outdated
Comment thread docs/guides/windows-compact-setup.mdx Outdated
Comment thread docs/guides/local-to-testnet.mdx Outdated
Comment thread docs/guides/local-to-testnet.mdx Outdated
oduameh added 2 commits July 17, 2026 08:56
Review feedback from nstanford5: the Docker image and Wallet SDK
version tables duplicated pins that live in midnight-local-dev's
standalone.yml and package.json, creating a second place to maintain
them. Point at the owning files instead.
@@ -0,0 +1,751 @@
---

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] reported by reviewdog 🐶
[Midnight.FleschReadabilityGradeLevel] Try to keep the Flesch-Kincaid grade level (8.04) below 8.

Review feedback from nstanford5: run-proof-server serves DApp users
(not builders) who need a Docker proof server for private dapp
interaction, a distinct audience from the developer setup inside
development-environment. Restored at its original URL: the four
redirect rules for that slug are removed, relnotes links point back
at it, and the guides landing page gains a matching tile. The
developer-focused proof server section in development-environment
stays.
@oduameh

oduameh commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

@nstanford5 thanks for the review. Addressed:

  • The description now opens with the intent and a full where-every-page-went mapping table (nothing is deleted except the retired query-the-blockchain guide and an orphaned partial; everything else is merged with anchors and one-hop redirects).
  • run-proof-server is restored as a standalone end-user page at its original URL (9ba445f), per your audience point.
  • The hardcoded version tables are gone (4e7c772); the doc now points at the files that own those pins.
  • Per-thread replies cover deploy-mn-app, the wallet connect merge, and the Expand Windows Compact setup guide (supersedes #1102) #1132 coordination plan.

CI is green apart from the native Vercel check that fails on every PR in this repo. Ready for another look.

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.

2 participants