Skip to content

docs: remove deprecated sections and migrate content for v1 release#132

Open
ihsraham wants to merge 1 commit intomasterfrom
docs/v1-removals-and-migrations
Open

docs: remove deprecated sections and migrate content for v1 release#132
ihsraham wants to merge 1 commit intomasterfrom
docs/v1-removals-and-migrations

Conversation

@ihsraham
Copy link
Copy Markdown
Collaborator

@ihsraham ihsraham commented Mar 30, 2026

Summary

Part 1 of YNU-864 (Prepare Docs for production release of Nitrolite v1) — Removals and Migrations.

  • Removed deprecated Learn pages: App Sessions, Session Keys, Message Envelope, Advanced section
  • Removed Protocol App Layer (15 files), cross-layer communication flows, glossary, implementation checklist
  • Removed Guides section (navbar, footer, sidebar) after migrating useful content
  • Migrated Getting Started (quickstart, prerequisites, key-terms) from Learn → Build
  • Migrated Migration Guide and Multi-Party App Sessions from Guides → Build/SDK
  • Deleted manuals (request-asset-support, request-blockchain-support, running-clearnode-locally)
  • Fixed all broken links in current docs and versioned 0.5.x docs caused by removals

56 files changed, ~8000 lines removed

Remaining pre-existing broken links (out of scope):

  • build/api/contracts/* — auto-generated API docs with broken /src/ paths
  • 0.5.x/protocol/app-layer/off-chain/channel-methods — internal 0.5.x link

Test plan

  • npm run build succeeds
  • Navbar shows: Learn, Build, Protocol, Whitepaper (no Guides)
  • Learn sidebar: Introduction, Core Concepts (3 items), Protocol Flows
  • Build sidebar auto-includes moved getting-started, migration-guide, multi-party pages
  • No new 404s when navigating the site

Summary by CodeRabbit

  • Documentation

    • Reorganized documentation structure with updated navigation paths and internal linking.
    • Removed several guides and advanced protocol documentation pages to streamline content.
  • Chores

    • Updated sidebar navigation and configuration to reflect documentation restructuring.

Part 1 of YNU-864. Remove deprecated Learn pages (App Sessions, Session
Keys, Message Envelope, Advanced section), Protocol App Layer (15 files),
Protocol cross-layer flows/glossary/checklist, Guides section (after
migrating migration-guide and multi-party-app-sessions to Build/SDK).
Remove Guides from navbar and footer. Fix all broken links in current
and versioned docs.
@ihsraham ihsraham requested a review from dpatsora as a code owner March 30, 2026 15:22
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 30, 2026

📝 Walkthrough

Walkthrough

This PR comprehensively restructures the documentation site by removing substantial sections of guide and protocol documentation, reorganizing the Learn sidebar categories, and updating internal navigation links to use relative paths instead of absolute paths.

Changes

Cohort / File(s) Summary
Guide Section Removal
docs/guides/index.md, docs/guides/manuals/*
Removed entire Guides section including guides landing page and three manual documentation pages (running-clearnode-locally, request-asset-support, request-blockchain-support) with their category configuration file.
Core Concepts Documentation Simplification
docs/learn/core-concepts/app-sessions.mdx, docs/learn/core-concepts/session-keys.mdx, docs/learn/core-concepts/message-envelope.mdx, docs/learn/core-concepts/challenge-response.mdx, docs/learn/core-concepts/state-channels-vs-l1-l2.mdx
Deleted three core concept pages entirely and removed deep-dive guidance links from remaining pages, consolidating references to single higher-level protocol introduction.
Learn Section Restructuring
docs/learn/index.mdx, docs/learn/advanced/_category_.json, docs/learn/advanced/managing-session-keys.mdx, docs/learn/introduction/...
Removed "Getting Started" section from learn index, deleted "Advanced" category with managing-session-keys page, and updated architecture/supported-chains/what-yellow-solves introduction pages with new link targets.
Protocol Documentation Removal
docs/protocol/app-layer/off-chain/*, docs/protocol/app-layer/on-chain/*, docs/protocol/communication-flows.mdx, docs/protocol/glossary.mdx, docs/protocol/implementation-checklist.mdx, docs/protocol/introduction.mdx, docs/protocol/protocol-reference.mdx
Deleted extensive protocol specification pages covering off-chain RPC (authentication, channel methods, app sessions, transfers, queries, message format, overview), on-chain contracts (channel lifecycle, data structures, overview, security, signature formats), cross-layer communication flows, glossary, and implementation checklist.
Site Configuration Updates
docusaurus.config.ts, sidebars.ts, src/components/HomepageFeatures/index.tsx
Removed Guides navigation from navbar/footer, removed Getting Started/Advanced categories and three core concept docs from learnSidebar, removed guidesSidebar definition, and updated homepage feature link to point to /docs/learn.
Versioned Docs Link Updates
versioned_docs/version-0.5.x/guides/*, versioned_docs/version-0.5.x/learn/...
Updated documentation links in versioned 0.5.x branch from absolute paths to relative paths for multi-party-app-sessions, core concepts, and introduction pages.
Build Documentation Link Updates
docs/build/getting-started/key-terms.mdx, docs/build/getting-started/prerequisites.mdx, docs/build/sdk/multi-party-app-sessions.mdx
Updated internal documentation links from relative to absolute paths and replaced further reading references with more general protocol/SDK links.
Learn Introduction Link Updates
docs/learn/introduction/what-yellow-solves.mdx, docs/learn/introduction/architecture-at-a-glance.mdx, docs/learn/introduction/supported-chains.mdx, docs/protocol/decentralized-layer/overview.mdx
Updated navigation links to use absolute paths and changed some targets to point to higher-level protocol architecture instead of specific on-chain/off-chain pages.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

Suggested reviewers

  • dpatsora
  • mod
  • alessio

Poem

🐰 The docs were long, the guides were wide,
So we trimmed the paths, reorganized the tide.
Protocol pages now rest in the past,
A cleaner sidebar structure built to last!
Links rewoven with relative grace—
Documentation finds its rightful place. ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: removing deprecated documentation sections and migrating content for the v1 release. It accurately reflects the substantial restructuring work shown in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/v1-removals-and-migrations

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/components/HomepageFeatures/index.tsx (1)

44-54: ⚠️ Potential issue | 🟠 Major

Misleading "Run a Clearnode" feature tile.

The tile description promises "Set up and operate a clearnode to provide network services and contribute to decentralized infrastructure," but the link now points to the generic /docs/learn page instead of specific setup instructions.

This creates a poor user experience where users clicking for clearnode setup instructions land on a general documentation homepage.

Recommended solutions:

  1. Update the description to reflect that detailed setup docs are not yet available
  2. Change the link to a more relevant target (e.g., architecture/clearnode concepts)
  3. Temporarily hide this tile until clearnode setup documentation is available
📝 Proposed fix: Update description to set accurate expectations
  {
    title: 'Run a Clearnode',
    imageSrc: require('@site/static/img/themes/light/icons/clearnode.png').default,
    imageSrcDark: require('@site/static/img/themes/dark/icons/clearnode.png').default,
    description: (
      <>
-        Set up and operate a clearnode to provide network services
-        and contribute to decentralized infrastructure.
+        Learn about clearnodes and their role in providing network services
+        for decentralized infrastructure. Setup guides coming soon.
      </>
    ),
    link: '/docs/learn',
  },
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/HomepageFeatures/index.tsx` around lines 44 - 54, The "Run a
Clearnode" feature entry (the object with title 'Run a Clearnode',
imageSrc/imageSrcDark, description, link) points to the generic '/docs/learn'
page which is misleading; either update the description JSX to set accurate
expectations (e.g., "Concepts and roadmap for clearnode setup — detailed setup
docs coming soon") and change the link to a more relevant page (e.g.,
'/docs/architecture/clearnode' or '/docs/learn/clearnode-concepts') or
temporarily remove/hide this tile by removing it from the exported features
array (or setting a flag like hidden: true) until full setup docs exist; make
the change in the HomepageFeatures entry for 'Run a Clearnode'.
🧹 Nitpick comments (1)
versioned_docs/version-0.5.x/learn/core-concepts/state-channels-vs-l1-l2.mdx (1)

139-139: Inconsistent link style: absolute path used.

Line 139 uses an absolute path (/docs/protocol/architecture.mdx) while lines 140-141 use relative paths (../../protocol/...). For consistency with the rest of this file and the broader PR pattern of standardizing on relative paths in versioned docs, consider updating this to a relative path as well.

♻️ Suggested fix for consistency
-- **[Architecture](/docs/protocol/architecture.mdx)** — System design and fund flows
+- **[Architecture](../../protocol/architecture.mdx)** — System design and fund flows
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@versioned_docs/version-0.5.x/learn/core-concepts/state-channels-vs-l1-l2.mdx`
at line 139, Replace the absolute link "/docs/protocol/architecture.mdx" with
the relative path used elsewhere in this doc (e.g.,
"../../protocol/architecture.mdx") so the Architecture link matches the relative
linking convention; update the link text within the same list item (the
"**[Architecture]...**" entry) to use the relative path.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/build/sdk/multi-party-app-sessions.mdx`:
- Around line 588-589: The "Further Reading" section was simplified to only
include "[Protocol] — Protocol specification and architecture" and "[SDK
Reference] — Complete SDK documentation", which reduces discoverability of
session-specific topics; update the "Further Reading" block (the section labeled
"Further Reading" that currently contains those two links) to either restore the
original four specific links (App Sessions concepts, app session methods,
client-side signing, and session keys) or, if you want to keep only the two
general links, add a short inline note under them pointing to where session key
management and signing workflows live (e.g., "For session key management and
signing workflows, see: App Sessions concepts and App session methods in the SDK
Reference and Client-side signing in Protocol docs"). Ensure the edit mentions
the specific pages by name so users can find them easily.

In `@docs/learn/core-concepts/challenge-response.mdx`:
- Line 155: Replace the single generic Protocol link in the sentence "For
technical implementation details, see the
[Protocol](/docs/protocol/introduction) section." with targeted links (or an
explanatory note) pointing to the specific deep-dive pages that were previously
present: Channel Lifecycle, Security Considerations, and Communication Flows (or
explicitly state where challenge-response closure-flow sequence diagrams live);
alternatively, if those pages were removed, update the Protocol introduction
page to prominently signpost or link to the challenge-response implementation
details and add a brief note here directing readers to that specific location.

---

Outside diff comments:
In `@src/components/HomepageFeatures/index.tsx`:
- Around line 44-54: The "Run a Clearnode" feature entry (the object with title
'Run a Clearnode', imageSrc/imageSrcDark, description, link) points to the
generic '/docs/learn' page which is misleading; either update the description
JSX to set accurate expectations (e.g., "Concepts and roadmap for clearnode
setup — detailed setup docs coming soon") and change the link to a more relevant
page (e.g., '/docs/architecture/clearnode' or '/docs/learn/clearnode-concepts')
or temporarily remove/hide this tile by removing it from the exported features
array (or setting a flag like hidden: true) until full setup docs exist; make
the change in the HomepageFeatures entry for 'Run a Clearnode'.

---

Nitpick comments:
In
`@versioned_docs/version-0.5.x/learn/core-concepts/state-channels-vs-l1-l2.mdx`:
- Line 139: Replace the absolute link "/docs/protocol/architecture.mdx" with the
relative path used elsewhere in this doc (e.g.,
"../../protocol/architecture.mdx") so the Architecture link matches the relative
linking convention; update the link text within the same list item (the
"**[Architecture]...**" entry) to use the relative path.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3bd6563c-a40d-4556-bcce-8541defffb40

📥 Commits

Reviewing files that changed from the base of the PR and between 99b7991 and 401c0ee.

📒 Files selected for processing (56)
  • docs/build/getting-started/_category_.json
  • docs/build/getting-started/key-terms.mdx
  • docs/build/getting-started/prerequisites.mdx
  • docs/build/getting-started/quickstart.mdx
  • docs/build/sdk/migration-guide.md
  • docs/build/sdk/multi-party-app-sessions.mdx
  • docs/guides/index.md
  • docs/guides/manuals/_category_.json
  • docs/guides/manuals/request-asset-support.md
  • docs/guides/manuals/request-blockchain-support.md
  • docs/guides/manuals/running-clearnode-locally.md
  • docs/learn/advanced/_category_.json
  • docs/learn/advanced/managing-session-keys.mdx
  • docs/learn/core-concepts/app-sessions.mdx
  • docs/learn/core-concepts/challenge-response.mdx
  • docs/learn/core-concepts/message-envelope.mdx
  • docs/learn/core-concepts/session-keys.mdx
  • docs/learn/core-concepts/state-channels-vs-l1-l2.mdx
  • docs/learn/index.mdx
  • docs/learn/introduction/architecture-at-a-glance.mdx
  • docs/learn/introduction/supported-chains.mdx
  • docs/learn/introduction/what-yellow-solves.mdx
  • docs/protocol/app-layer/_category_.json
  • docs/protocol/app-layer/off-chain/_category_.json
  • docs/protocol/app-layer/off-chain/app-sessions.mdx
  • docs/protocol/app-layer/off-chain/authentication.mdx
  • docs/protocol/app-layer/off-chain/channel-methods.mdx
  • docs/protocol/app-layer/off-chain/message-format.mdx
  • docs/protocol/app-layer/off-chain/overview.mdx
  • docs/protocol/app-layer/off-chain/queries.mdx
  • docs/protocol/app-layer/off-chain/transfers.mdx
  • docs/protocol/app-layer/on-chain/_category_.json
  • docs/protocol/app-layer/on-chain/channel-lifecycle.mdx
  • docs/protocol/app-layer/on-chain/data-structures.mdx
  • docs/protocol/app-layer/on-chain/overview.mdx
  • docs/protocol/app-layer/on-chain/security.mdx
  • docs/protocol/app-layer/on-chain/signature-formats.mdx
  • docs/protocol/communication-flows.mdx
  • docs/protocol/decentralized-layer/overview.mdx
  • docs/protocol/glossary.mdx
  • docs/protocol/implementation-checklist.mdx
  • docs/protocol/introduction.mdx
  • docs/protocol/protocol-reference.mdx
  • docusaurus.config.ts
  • sidebars.ts
  • src/components/HomepageFeatures/index.tsx
  • versioned_docs/version-0.5.x/guides/index.md
  • versioned_docs/version-0.5.x/guides/multi-party-app-sessions.mdx
  • versioned_docs/version-0.5.x/learn/core-concepts/app-sessions.mdx
  • versioned_docs/version-0.5.x/learn/core-concepts/challenge-response.mdx
  • versioned_docs/version-0.5.x/learn/core-concepts/message-envelope.mdx
  • versioned_docs/version-0.5.x/learn/core-concepts/session-keys.mdx
  • versioned_docs/version-0.5.x/learn/core-concepts/state-channels-vs-l1-l2.mdx
  • versioned_docs/version-0.5.x/learn/getting-started/key-terms.mdx
  • versioned_docs/version-0.5.x/learn/introduction/architecture-at-a-glance.mdx
  • versioned_docs/version-0.5.x/learn/introduction/supported-chains.mdx
💤 Files with no reviewable changes (33)
  • docs/learn/advanced/category.json
  • docs/protocol/app-layer/off-chain/category.json
  • docs/guides/index.md
  • docs/protocol/app-layer/on-chain/category.json
  • docs/protocol/app-layer/category.json
  • docs/learn/core-concepts/state-channels-vs-l1-l2.mdx
  • docs/guides/manuals/category.json
  • docusaurus.config.ts
  • docs/protocol/glossary.mdx
  • docs/guides/manuals/request-blockchain-support.md
  • docs/protocol/introduction.mdx
  • docs/learn/core-concepts/app-sessions.mdx
  • docs/protocol/app-layer/on-chain/signature-formats.mdx
  • docs/protocol/app-layer/on-chain/security.mdx
  • docs/learn/advanced/managing-session-keys.mdx
  • docs/learn/index.mdx
  • docs/protocol/app-layer/on-chain/data-structures.mdx
  • docs/protocol/app-layer/off-chain/authentication.mdx
  • docs/learn/core-concepts/message-envelope.mdx
  • docs/protocol/app-layer/off-chain/overview.mdx
  • docs/guides/manuals/request-asset-support.md
  • docs/protocol/communication-flows.mdx
  • docs/learn/core-concepts/session-keys.mdx
  • docs/protocol/app-layer/off-chain/app-sessions.mdx
  • docs/protocol/app-layer/off-chain/message-format.mdx
  • docs/guides/manuals/running-clearnode-locally.md
  • docs/protocol/app-layer/off-chain/queries.mdx
  • docs/protocol/app-layer/on-chain/overview.mdx
  • docs/protocol/implementation-checklist.mdx
  • sidebars.ts
  • docs/protocol/app-layer/off-chain/transfers.mdx
  • docs/protocol/app-layer/on-chain/channel-lifecycle.mdx
  • docs/protocol/app-layer/off-chain/channel-methods.mdx

Comment on lines +588 to +589
- [Protocol](/docs/protocol/introduction) — Protocol specification and architecture
- [SDK Reference](/docs/build/sdk) — Complete SDK documentation
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Consider the impact of reducing navigation specificity.

The previous "Further Reading" section provided direct links to four specific topics (App Sessions concepts, app session methods, client-side signing, and session keys). Replacing these with two general links (Protocol introduction and SDK reference) may reduce discoverability for users seeking specific information.

If the specific pages were intentionally removed, consider adding brief inline guidance about where to find topics like session key management and signing workflows within the general documentation.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/build/sdk/multi-party-app-sessions.mdx` around lines 588 - 589, The
"Further Reading" section was simplified to only include "[Protocol] — Protocol
specification and architecture" and "[SDK Reference] — Complete SDK
documentation", which reduces discoverability of session-specific topics; update
the "Further Reading" block (the section labeled "Further Reading" that
currently contains those two links) to either restore the original four specific
links (App Sessions concepts, app session methods, client-side signing, and
session keys) or, if you want to keep only the two general links, add a short
inline note under them pointing to where session key management and signing
workflows live (e.g., "For session key management and signing workflows, see:
App Sessions concepts and App session methods in the SDK Reference and
Client-side signing in Protocol docs"). Ensure the edit mentions the specific
pages by name so users can find them easily.

- **[Channel Lifecycle](/docs/protocol/app-layer/on-chain/channel-lifecycle.mdx)** — Full state machine
- **[Security Considerations](/docs/protocol/app-layer/on-chain/security.mdx)** — Threat model and best practices
- **[Communication Flows](/docs/protocol/communication-flows.mdx#challenge-response-closure-flow)** — Sequence diagrams
For technical implementation details, see the [Protocol](/docs/protocol/introduction) section.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Consider restoring specific deep-dive navigation.

The previous version offered targeted links to Channel Lifecycle, Security Considerations, and Communication Flows. Replacing these with a single generic Protocol link may reduce discoverability for users seeking specific technical details like "challenge-response closure-flow sequence diagrams."

If those pages were removed intentionally, consider adding a note explaining where users can find challenge-response implementation details, or ensure the Protocol introduction page clearly signposts those topics.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/learn/core-concepts/challenge-response.mdx` at line 155, Replace the
single generic Protocol link in the sentence "For technical implementation
details, see the [Protocol](/docs/protocol/introduction) section." with targeted
links (or an explanatory note) pointing to the specific deep-dive pages that
were previously present: Channel Lifecycle, Security Considerations, and
Communication Flows (or explicitly state where challenge-response closure-flow
sequence diagrams live); alternatively, if those pages were removed, update the
Protocol introduction page to prominently signpost or link to the
challenge-response implementation details and add a brief note here directing
readers to that specific location.

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