Skip to content

docs: content update#785

Merged
fadeev merged 17 commits into
mainfrom
test-branch-content
Jun 1, 2026
Merged

docs: content update#785
fadeev merged 17 commits into
mainfrom
test-branch-content

Conversation

@fadeev

@fadeev fadeev commented May 17, 2026

Copy link
Copy Markdown
Member

Note

Medium Risk
This removes a large set of developer documentation pages and nav metadata, which may break existing internal links/routes (e.g., chain gateway docs) if redirects or references aren’t updated. Content-only changes otherwise, but the scope of deletions makes docs navigation regressions more likely.

Overview
Reworks the About overview pages to use short static Markdown copy (network description + Explore links) instead of rendering the previous component-based sections, and updates frontmatter title/description.

Significantly prunes the Developers docs IA/content by simplifying _meta navigation (renaming/condensing sections like Universal EVMEVM) and deleting multiple pages/sections, including developers/chains/* gateway/how-to content, several developers/evm/* reference pages, developers/protocol/* metadata, and some developers/architecture/* topics (e.g., observers, ERC-20 whitelisting).

Reviewed by Cursor Bugbot for commit d3bc116. Configure here.

Summary by CodeRabbit

  • Documentation Updates

    • Large restructure: many developer/tutorial/reference pages removed or consolidated; new "ZetaChain EVM" and updated developer/architecture content added.
    • About, token utility, FAQ, glossary, and services content revised for clearer wording.
  • Homepage Changes

    • Simplified homepage: removed videos, blog carousel, ecosystem carousel, and several community widgets; updated hero and section copy.
  • Navigation Updates

    • "Build" relabeled to "Architecture" and site navigation/meta sections reorganized.
  • New/Localized Content

    • Added a Chinese community page and new localized EVM docs.

@fadeev fadeev requested review from a team as code owners May 17, 2026 10:09
@vercel

vercel Bot commented May 17, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
docs-v2 Ready Ready Preview May 22, 2026 4:05pm

Request Review

@coderabbitai

coderabbitai Bot commented May 17, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

This PR restructures the ZetaChain documentation site by removing advanced chain-specific and protocol guides, consolidating tutorials to staking only, rebranding developer sections from "Build" to "Architecture," and pivoting the getting-started narrative from cross-chain universal apps toward standard EVM smart contract development.

Changes

Documentation Restructuring and Architecture-First Navigation

Layer / File(s) Summary
Navigation Label and Branding Updates
src/components/shared/components/Layout/Layout.constants.tsx, src/pages/_meta.*.json, src/pages/developers/overview.*
"Build" label changed to "Architecture" across main navigation and all page metadata files (English and Chinese); overview pages updated to reflect architecture-focused perspective.
Developers Section Metadata Reorganization
src/pages/developers/_meta.*.json
Developers section restructured: EVM renamed to "ZetaChain EVM"; top-level sections (standards, chains, tutorials, protocol) removed; new subsections (zeta, erc20, addresses, rewards, zetacored) introduced.
About Overview Pages: Component-to-Markdown Conversion
src/pages/about/overview.*.mdx
Both English and Chinese about pages converted from component-driven React layouts to static markdown with descriptive sections on Cosmos SDK/CometBFT, EVM compatibility, consensus model, and Explore links.
Getting Started Reorientation: Universal Apps to Smart Contracts
src/pages/start/_meta.*.json, src/pages/start/app.*.mdx, src/pages/start/build.*.mdx
Start section pivoted from cross-chain universal app concepts to native EVM smart contract development; metadata and page content now emphasize ZetaChain RPC, standard EVM tooling, and account formats.
New EVM Architecture Documentation
src/pages/developers/evm.*.mdx
Comprehensive new documentation pages (English and Chinese) covering ZetaChain EVM architecture, Ethereum compatibility, finality, account/address formats, fee model, tooling, and Cosmos feature exposure via precompiles.
Reference Section Navigation Cleanup
src/pages/reference/_meta.*.json
Reference metadata streamlined: CLI, localnet, toolkit, registry, MCP sections removed; faucet and explorers reordered; corresponding documentation pages deleted.
Homepage Component Simplification
src/components/Home/*, src/components/Home/hooks/useHomePageContent.ts, src/components/Home/index.ts
Homepage simplified by removing video section, ecosystem carousel, community section, and engineering blog; data dependencies reduced to featured ecosystem apps only; GraphQL queries for events and blog posts deleted; barrel exports updated.
Tutorial Section Consolidation
src/pages/developers/tutorials/_meta.zh-CN.json
Tutorial metadata consolidated to staking tutorial only; all other tutorials (intro, hello, frontend, call, messaging, swap, chain-specific variants) removed from navigation.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

✨ 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 test-branch-content

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 7

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/pages/about/overview.en-US.mdx`:
- Line 13: Replace the unhyphenated compound modifier "~5 second blocks" with
the hyphenated form "~5-second blocks" in the text (look for the phrase "~5
second blocks" in the content, e.g., in the sentence beginning "The chain has ~5
second blocks...") so the modifier is grammatically correct.
- Around line 9-11: Update the hardcoded links in the MDX content so they use
the canonical domain https://www.zetachain.com; specifically replace the URLs
for the link texts "Cosmos SDK", "CometBFT", and "Cosmos EVM" (and any other
hardcoded links in the same file mentioned in the comment) with their canonical
https://www.zetachain.com/... counterparts, ensuring each href begins with
https://www.zetachain.com/ and preserving the visible link text and path
segments.

In `@src/pages/about/overview.zh-CN.mdx`:
- Around line 2-30: Replace the English copy in this zh-CN locale file by
localizing the frontmatter fields and body into Simplified Chinese: update the
title and description frontmatter values (the "title:" and "description:"
fields) to Chinese, and translate the entire body paragraph(s) including the
opening description that starts with "ZetaChain is a Proof of Stake Layer 1
blockchain..." plus the "Explore" section items and the third-party disclaimer
into fluent Simplified Chinese while keeping heroImgUrl and heroImgWidth
unchanged; ensure links and markdown structure are preserved and that Chinese
punctuation/terminology is used consistently for UX.
- Around line 9-11: Replace all hardcoded external links in the MDX page with
the canonical www.zetachain.com domain: change the occurrences of
https://docs.cosmos.network/, https://docs.cometbft.com/, and
https://evm.cosmos.network/ (found around the block showing Cosmos SDK /
CometBFT / Cosmos EVM and additionally in the section referenced at lines 19-23)
to their corresponding https://www.zetachain.com/... canonical URLs; ensure
every hardcoded URL in src/pages/about/overview.zh-CN.mdx uses
https://www.zetachain.com as the base and update any remaining links elsewhere
in that file to follow the same rule so no MDX links point to non-canonical
domains.
- Line 13: Replace the unhyphenated compound in the sentence containing "The
chain has ~5 second blocks with instant finality, an EIP-1559 fee market," by
changing "~5 second blocks" to "~5-second blocks" so the phrase reads "The chain
has ~5-second blocks with instant finality, an EIP-1559 fee market,"; update
this exact string in the src/pages/about/overview.zh-CN.mdx content.

In `@src/pages/start/app.zh-CN.mdx`:
- Around line 2-3: The zh-CN locale page has English frontmatter and content;
restore Chinese localization by replacing the frontmatter fields (title,
description) with Chinese equivalents and translating the MDX body into Chinese;
update the frontmatter keys in app.zh-CN.mdx (title, description) to Chinese
strings like "智能合约" and a Chinese description, and translate all English body
headings, paragraphs and code comments into Simplified Chinese to match the
locale; apply the same fix pattern to the other affected locale files referenced
(lines 6-16) to ensure consistency across zh-CN pages.

In `@src/pages/start/build.zh-CN.mdx`:
- Around line 2-3: The zh-CN localized page has English frontmatter fields
"title" and "description" and English body copy; replace those with Chinese
translations and localize the entire MDX body (including headings, paragraphs,
code comments and any UI strings). Update the "title" and "description"
frontmatter to Chinese equivalents, and scan the rest of the document for
remaining English (lines noted around the top and also lines 6-18) to translate
them into Simplified Chinese so the page is fully localized.
🪄 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: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4679dd32-2e35-446b-afd6-31da4a525137

📥 Commits

Reviewing files that changed from the base of the PR and between a3d9b84 and d3bc116.

📒 Files selected for processing (99)
  • src/pages/about/overview.en-US.mdx
  • src/pages/about/overview.zh-CN.mdx
  • src/pages/developers/_meta.en-US.json
  • src/pages/developers/_meta.zh-CN.json
  • src/pages/developers/architecture/_meta.en-US.json
  • src/pages/developers/architecture/_meta.zh-CN.json
  • src/pages/developers/architecture/observers.en-US.mdx
  • src/pages/developers/architecture/observers.zh-CN.mdx
  • src/pages/developers/architecture/whitelisting.en-US.mdx
  • src/pages/developers/architecture/whitelisting.zh-CN.mdx
  • src/pages/developers/chains/_meta.en-US.json
  • src/pages/developers/chains/_meta.zh-CN.json
  • src/pages/developers/chains/bitcoin.en-US.mdx
  • src/pages/developers/chains/bitcoin.zh-CN.mdx
  • src/pages/developers/chains/evm.en-US.mdx
  • src/pages/developers/chains/evm.zh-CN.mdx
  • src/pages/developers/chains/functionality.en-US.mdx
  • src/pages/developers/chains/functionality.zh-CN.mdx
  • src/pages/developers/chains/list.en-US.mdx
  • src/pages/developers/chains/list.zh-CN.mdx
  • src/pages/developers/chains/solana.en-US.mdx
  • src/pages/developers/chains/solana.zh-CN.mdx
  • src/pages/developers/chains/sui.en-US.mdx
  • src/pages/developers/chains/sui.zh-CN.mdx
  • src/pages/developers/chains/ton.en-US.mdx
  • src/pages/developers/chains/ton.zh-CN.mdx
  • src/pages/developers/chains/zetachain.en-US.mdx
  • src/pages/developers/chains/zetachain.zh-CN.mdx
  • src/pages/developers/evm/_meta.en-US.json
  • src/pages/developers/evm/_meta.zh-CN.json
  • src/pages/developers/evm/cctx.en-US.mdx
  • src/pages/developers/evm/cctx.zh-CN.mdx
  • src/pages/developers/evm/gas.en-US.mdx
  • src/pages/developers/evm/gas.zh-CN.mdx
  • src/pages/developers/evm/gateway.en-US.mdx
  • src/pages/developers/evm/gateway.zh-CN.mdx
  • src/pages/developers/evm/index.zh-CN.mdx
  • src/pages/developers/evm/throughput.en-US.mdx
  • src/pages/developers/evm/throughput.zh-CN.mdx
  • src/pages/developers/evm/zrc20.en-US.mdx
  • src/pages/developers/evm/zrc20.zh-CN.mdx
  • src/pages/developers/protocol/_meta.en-US.json
  • src/pages/developers/protocol/_meta.zh-CN.json
  • src/pages/developers/protocol/evm.en-US.md
  • src/pages/developers/protocol/evm.zh-CN.md
  • src/pages/developers/protocol/solana.en-US.md
  • src/pages/developers/protocol/solana.zh-CN.md
  • src/pages/developers/protocol/sui.en-US.md
  • src/pages/developers/protocol/sui.zh-CN.md
  • src/pages/developers/protocol/ton.en-US.md
  • src/pages/developers/protocol/ton.zh-CN.md
  • src/pages/developers/standards/_meta.en-US.json
  • src/pages/developers/standards/_meta.zh-CN.json
  • src/pages/developers/standards/nft.en-US.mdx
  • src/pages/developers/standards/nft.zh-CN.mdx
  • src/pages/developers/standards/overview.en-US.mdx
  • src/pages/developers/standards/overview.zh-CN.mdx
  • src/pages/developers/standards/token.en-US.mdx
  • src/pages/developers/standards/token.zh-CN.mdx
  • src/pages/developers/tutorials/_meta.en-US.json
  • src/pages/developers/tutorials/_meta.zh-CN.json
  • src/pages/developers/tutorials/call.en-US.mdx
  • src/pages/developers/tutorials/call.zh-CN.mdx
  • src/pages/developers/tutorials/frontend.en-US.mdx
  • src/pages/developers/tutorials/frontend.zh-CN.mdx
  • src/pages/developers/tutorials/hello.en-US.mdx
  • src/pages/developers/tutorials/hello.zh-CN.mdx
  • src/pages/developers/tutorials/intro.en-US.mdx
  • src/pages/developers/tutorials/intro.zh-CN.mdx
  • src/pages/developers/tutorials/messaging.en-US.mdx
  • src/pages/developers/tutorials/messaging.zh-CN.mdx
  • src/pages/developers/tutorials/solana.en-US.mdx
  • src/pages/developers/tutorials/solana.zh-CN.mdx
  • src/pages/developers/tutorials/sui-withdraw-and-call.en-US.mdx
  • src/pages/developers/tutorials/sui-withdraw-and-call.zh-CN.mdx
  • src/pages/developers/tutorials/sui.en-US.mdx
  • src/pages/developers/tutorials/sui.zh-CN.mdx
  • src/pages/developers/tutorials/swap.en-US.mdx
  • src/pages/developers/tutorials/swap.zh-CN.mdx
  • src/pages/reference/_meta.en-US.json
  • src/pages/reference/_meta.zh-CN.json
  • src/pages/reference/cli.en-US.mdx
  • src/pages/reference/cli.zh-CN.mdx
  • src/pages/reference/localnet.en-US.mdx
  • src/pages/reference/localnet.zh-CN.mdx
  • src/pages/reference/mcp.en-US.mdx
  • src/pages/reference/mcp.zh-CN.mdx
  • src/pages/reference/registry.en-US.mdx
  • src/pages/reference/registry.zh-CN.mdx
  • src/pages/reference/toolkit.en-US.mdx
  • src/pages/reference/toolkit.zh-CN.mdx
  • src/pages/start/_meta.en-US.json
  • src/pages/start/_meta.zh-CN.json
  • src/pages/start/app.en-US.mdx
  • src/pages/start/app.zh-CN.mdx
  • src/pages/start/build.en-US.mdx
  • src/pages/start/build.zh-CN.mdx
  • src/pages/start/zetachain.en-US.mdx
  • src/pages/start/zetachain.zh-CN.mdx
💤 Files with no reviewable changes (81)
  • src/pages/reference/localnet.en-US.mdx
  • src/pages/developers/chains/_meta.en-US.json
  • src/pages/developers/evm/gateway.en-US.mdx
  • src/pages/reference/mcp.en-US.mdx
  • src/pages/developers/chains/ton.en-US.mdx
  • src/pages/developers/standards/overview.zh-CN.mdx
  • src/pages/developers/evm/cctx.zh-CN.mdx
  • src/pages/developers/protocol/ton.en-US.md
  • src/pages/developers/chains/_meta.zh-CN.json
  • src/pages/developers/protocol/evm.zh-CN.md
  • src/pages/developers/protocol/_meta.en-US.json
  • src/pages/developers/chains/bitcoin.en-US.mdx
  • src/pages/developers/tutorials/solana.en-US.mdx
  • src/pages/developers/architecture/observers.zh-CN.mdx
  • src/pages/developers/protocol/sui.en-US.md
  • src/pages/developers/chains/sui.zh-CN.mdx
  • src/pages/developers/evm/gas.en-US.mdx
  • src/pages/reference/toolkit.zh-CN.mdx
  • src/pages/developers/standards/overview.en-US.mdx
  • src/pages/developers/architecture/whitelisting.zh-CN.mdx
  • src/pages/developers/standards/_meta.zh-CN.json
  • src/pages/developers/standards/_meta.en-US.json
  • src/pages/developers/chains/zetachain.en-US.mdx
  • src/pages/developers/evm/gateway.zh-CN.mdx
  • src/pages/developers/architecture/_meta.zh-CN.json
  • src/pages/reference/localnet.zh-CN.mdx
  • src/pages/developers/evm/index.zh-CN.mdx
  • src/pages/developers/tutorials/swap.en-US.mdx
  • src/pages/developers/standards/nft.en-US.mdx
  • src/pages/developers/evm/zrc20.en-US.mdx
  • src/pages/developers/tutorials/frontend.en-US.mdx
  • src/pages/developers/tutorials/sui-withdraw-and-call.en-US.mdx
  • src/pages/reference/mcp.zh-CN.mdx
  • src/pages/developers/protocol/sui.zh-CN.md
  • src/pages/developers/protocol/ton.zh-CN.md
  • src/pages/developers/evm/cctx.en-US.mdx
  • src/pages/developers/tutorials/messaging.en-US.mdx
  • src/pages/developers/evm/throughput.en-US.mdx
  • src/pages/developers/tutorials/sui-withdraw-and-call.zh-CN.mdx
  • src/pages/developers/tutorials/solana.zh-CN.mdx
  • src/pages/developers/chains/list.en-US.mdx
  • src/pages/developers/evm/throughput.zh-CN.mdx
  • src/pages/developers/standards/token.zh-CN.mdx
  • src/pages/developers/protocol/_meta.zh-CN.json
  • src/pages/developers/tutorials/_meta.zh-CN.json
  • src/pages/developers/tutorials/call.en-US.mdx
  • src/pages/developers/chains/evm.en-US.mdx
  • src/pages/developers/chains/ton.zh-CN.mdx
  • src/pages/developers/tutorials/intro.en-US.mdx
  • src/pages/developers/chains/sui.en-US.mdx
  • src/pages/developers/tutorials/hello.en-US.mdx
  • src/pages/developers/tutorials/sui.en-US.mdx
  • src/pages/reference/registry.en-US.mdx
  • src/pages/developers/tutorials/intro.zh-CN.mdx
  • src/pages/developers/chains/functionality.en-US.mdx
  • src/pages/reference/_meta.zh-CN.json
  • src/pages/developers/standards/token.en-US.mdx
  • src/pages/developers/chains/evm.zh-CN.mdx
  • src/pages/developers/standards/nft.zh-CN.mdx
  • src/pages/developers/tutorials/swap.zh-CN.mdx
  • src/pages/developers/chains/zetachain.zh-CN.mdx
  • src/pages/developers/protocol/solana.en-US.md
  • src/pages/developers/evm/zrc20.zh-CN.mdx
  • src/pages/reference/registry.zh-CN.mdx
  • src/pages/developers/chains/functionality.zh-CN.mdx
  • src/pages/developers/architecture/whitelisting.en-US.mdx
  • src/pages/developers/chains/solana.zh-CN.mdx
  • src/pages/developers/protocol/solana.zh-CN.md
  • src/pages/developers/chains/list.zh-CN.mdx
  • src/pages/reference/toolkit.en-US.mdx
  • src/pages/developers/tutorials/hello.zh-CN.mdx
  • src/pages/developers/tutorials/frontend.zh-CN.mdx
  • src/pages/reference/cli.en-US.mdx
  • src/pages/developers/tutorials/messaging.zh-CN.mdx
  • src/pages/developers/architecture/observers.en-US.mdx
  • src/pages/developers/tutorials/call.zh-CN.mdx
  • src/pages/developers/chains/bitcoin.zh-CN.mdx
  • src/pages/reference/cli.zh-CN.mdx
  • src/pages/developers/evm/gas.zh-CN.mdx
  • src/pages/developers/chains/solana.en-US.mdx
  • src/pages/developers/tutorials/sui.zh-CN.mdx

Comment on lines +9 to +11
[Cosmos SDK](https://docs.cosmos.network/) and uses the
[CometBFT](https://docs.cometbft.com/) consensus engine, with full EVM
compatibility provided by [Cosmos EVM](https://evm.cosmos.network/).

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.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Use canonical www.zetachain.com URLs for all hardcoded links.

Hardcoded links in this page currently use non-canonical domains and relative paths. Please update them to canonical https://www.zetachain.com/... URLs per policy.

As per coding guidelines, "All hardcoded URLs in MDX content must use the canonical domain www.zetachain.com."

Also applies to: 19-23

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/pages/about/overview.en-US.mdx` around lines 9 - 11, Update the hardcoded
links in the MDX content so they use the canonical domain
https://www.zetachain.com; specifically replace the URLs for the link texts
"Cosmos SDK", "CometBFT", and "Cosmos EVM" (and any other hardcoded links in the
same file mentioned in the comment) with their canonical
https://www.zetachain.com/... counterparts, ensuring each href begins with
https://www.zetachain.com/ and preserving the visible link text and path
segments.

<RoadmapPillars />
<CurrentPageNavigationSections />
</div>
The chain has ~5 second blocks with instant finality, an EIP-1559 fee market,

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.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Hyphenate compound modifier in Line 13.

Use ~5-second blocks instead of ~5 second blocks for correct grammar.

🧰 Tools
🪛 LanguageTool

[grammar] ~13-~13: Use a hyphen to join words.
Context: .../evm.cosmos.network/). The chain has ~5 second blocks with instant finality, an ...

(QB_NEW_EN_HYPHEN)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/pages/about/overview.en-US.mdx` at line 13, Replace the unhyphenated
compound modifier "~5 second blocks" with the hyphenated form "~5-second blocks"
in the text (look for the phrase "~5 second blocks" in the content, e.g., in the
sentence beginning "The chain has ~5 second blocks...") so the modifier is
grammatically correct.

Comment thread src/pages/about/overview.zh-CN.mdx Outdated
Comment thread src/pages/about/overview.zh-CN.mdx Outdated
Comment on lines +9 to +11
[Cosmos SDK](https://docs.cosmos.network/) and uses the
[CometBFT](https://docs.cometbft.com/) consensus engine, with full EVM
compatibility provided by [Cosmos EVM](https://evm.cosmos.network/).

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.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Apply canonical www.zetachain.com URLs in this MDX page.

Hardcoded links here do not follow the canonical-domain rule. Please switch them to https://www.zetachain.com/... URLs.

As per coding guidelines, "All hardcoded URLs in MDX content must use the canonical domain www.zetachain.com."

Also applies to: 19-23

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/pages/about/overview.zh-CN.mdx` around lines 9 - 11, Replace all
hardcoded external links in the MDX page with the canonical www.zetachain.com
domain: change the occurrences of https://docs.cosmos.network/,
https://docs.cometbft.com/, and https://evm.cosmos.network/ (found around the
block showing Cosmos SDK / CometBFT / Cosmos EVM and additionally in the section
referenced at lines 19-23) to their corresponding https://www.zetachain.com/...
canonical URLs; ensure every hardcoded URL in src/pages/about/overview.zh-CN.mdx
uses https://www.zetachain.com as the base and update any remaining links
elsewhere in that file to follow the same rule so no MDX links point to
non-canonical domains.

Comment thread src/pages/about/overview.zh-CN.mdx Outdated
Comment on lines +2 to +3
title: Smart Contracts
description: Deploy and interact with EVM smart contracts on ZetaChain.

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.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Restore Chinese-localized content for the zh-CN page.

This locale page is entirely English now, which is an i18n regression for Chinese users and breaks locale expectations in production docs. Please provide Chinese frontmatter and body copy for this file.

Also applies to: 6-16

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/pages/start/app.zh-CN.mdx` around lines 2 - 3, The zh-CN locale page has
English frontmatter and content; restore Chinese localization by replacing the
frontmatter fields (title, description) with Chinese equivalents and translating
the MDX body into Chinese; update the frontmatter keys in app.zh-CN.mdx (title,
description) to Chinese strings like "智能合约" and a Chinese description, and
translate all English body headings, paragraphs and code comments into
Simplified Chinese to match the locale; apply the same fix pattern to the other
affected locale files referenced (lines 6-16) to ensure consistency across zh-CN
pages.

Comment on lines +2 to +3
title: Build on ZetaChain
description: Deploy EVM smart contracts on ZetaChain using Hardhat, Foundry, or any standard EVM toolchain.

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.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Localize the zh-CN build page instead of shipping English copy.

The .zh-CN.mdx page currently contains English frontmatter and body content, which degrades the localized docs experience and should be corrected before release.

Also applies to: 6-18

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/pages/start/build.zh-CN.mdx` around lines 2 - 3, The zh-CN localized page
has English frontmatter fields "title" and "description" and English body copy;
replace those with Chinese translations and localize the entire MDX body
(including headings, paragraphs, code comments and any UI strings). Update the
"title" and "description" frontmatter to Chinese equivalents, and scan the rest
of the document for remaining English (lines noted around the top and also lines
6-18) to translate them into Simplified Chinese so the page is fully localized.

…atibility

- Created open-next.config.ts to define Cloudflare configuration.
- Added patch-cloudflare-deps.mjs script to strip incompatible export conditions from @emotion packages.
- Introduced wrangler.jsonc for Cloudflare Workers configuration, specifying assets and compatibility settings.
@github-actions

github-actions Bot commented May 17, 2026

Copy link
Copy Markdown
Contributor

Cloudflare Workers Preview — Deploy failed.

View logs

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/deploy.yml:
- Around line 158-162: The cleanup-preview job currently runs npx wrangler
delete (using WORKER_NAME="zetachain-docs-pr-${{
github.event.pull_request.number }}") without reproducing the same pinned
toolchain as deploy/deploy-preview; update the cleanup-preview job to mirror the
other jobs by adding actions/checkout, actions/setup-node with the repo Node
version, and a yarn install --frozen-lockfile step, then replace npx wrangler
delete with the pinned invocation (yarn wrangler delete --name "$WORKER_NAME"
--force) so the same Wrangler version is used for worker deletion.

In `@next.config.js`:
- Around line 9-11: The dynamic import promise for `@opennextjs/cloudflare`
currently swallows errors in the .catch(() => {}) handler; update the catch to
surface the failure by logging the error (e.g., console.warn or a logger) and
include the thrown error details and context (mentioning
initOpenNextCloudflareForDev) so local Cloudflare dev-init failures aren't
silent—replace the empty catch with a handler that logs a descriptive warning
plus the error object.

In `@package.json`:
- Line 9: Update the Next.js dependency to a supported release (e.g., set "next"
to at least 15.5.15 or 16.2.6+) in package.json and remove the
--dangerouslyUseUnsupportedNextVersion flag from the "build:cloudflare" npm
script so the script "build:cloudflare" becomes safe to run with
`@opennextjs/cloudflare` v1.17.1; after changing the "next" version, run install
and validate the build to ensure compatibility with any breaking changes.
🪄 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: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 61740c3c-a06b-4a15-8746-4f1da24de6d5

📥 Commits

Reviewing files that changed from the base of the PR and between d3bc116 and 1d1dd96.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (62)
  • .github/workflows/deploy.yml
  • .gitignore
  • app/api/chat/route.ts
  • next.config.js
  • open-next.config.ts
  • package.json
  • scripts/patch-cloudflare-deps.mjs
  • src/components/Home/Home.constants.tsx
  • src/components/Home/Home.graphql.contentful.ts
  • src/components/Home/components/EcosystemCarousel/EcosystemCarousel.tsx
  • src/components/Home/components/EcosystemCarousel/Slide.tsx
  • src/components/Home/components/EcosystemCarousel/SlideItemsIndicator.tsx
  • src/components/Home/components/EngineeringBlog.tsx
  • src/components/Home/components/HomePage.tsx
  • src/components/Home/components/JoinCommunity.tsx
  • src/components/Home/components/VideosSection.tsx
  • src/components/Home/components/svg/EngineeringBlog.tsx
  • src/components/Home/components/svg/JoinCommunitySvgs.tsx
  • src/components/Home/hooks/useHomePageContent.ts
  • src/components/Home/index.ts
  • src/components/shared/components/Layout/Layout.constants.tsx
  • src/pages/_meta.en-US.json
  • src/pages/_meta.zh-CN.json
  • src/pages/developers/_meta.en-US.json
  • src/pages/developers/_meta.zh-CN.json
  • src/pages/developers/addresses.en-US.mdx
  • src/pages/developers/addresses.zh-CN.mdx
  • src/pages/developers/architecture/_meta.en-US.json
  • src/pages/developers/architecture/_meta.zh-CN.json
  • src/pages/developers/architecture/modules.en-US.mdx
  • src/pages/developers/architecture/modules.zh-CN.mdx
  • src/pages/developers/architecture/overview.en-US.mdx
  • src/pages/developers/architecture/overview.zh-CN.mdx
  • src/pages/developers/architecture/privileged.en-US.mdx
  • src/pages/developers/architecture/privileged.zh-CN.mdx
  • src/pages/developers/erc20.en-US.mdx
  • src/pages/developers/erc20.zh-CN.mdx
  • src/pages/developers/evm.en-US.mdx
  • src/pages/developers/evm.zh-CN.mdx
  • src/pages/developers/evm/_meta.en-US.json
  • src/pages/developers/evm/_meta.zh-CN.json
  • src/pages/developers/evm/evm.en-US.mdx
  • src/pages/developers/evm/evm.zh-CN.mdx
  • src/pages/developers/overview.en-US.mdx
  • src/pages/developers/overview.zh-CN.mdx
  • src/pages/developers/rewards.en-US.mdx
  • src/pages/developers/rewards.zh-CN.mdx
  • src/pages/developers/tutorials/_meta.en-US.json
  • src/pages/developers/tutorials/_meta.zh-CN.json
  • src/pages/developers/tutorials/staking.en-US.mdx
  • src/pages/developers/tutorials/staking.zh-CN.mdx
  • src/pages/developers/zeta.en-US.mdx
  • src/pages/developers/zeta.zh-CN.mdx
  • src/pages/developers/zetacored.en-US.md
  • src/pages/developers/zetacored.zh-CN.md
  • src/pages/reference/tools/address-converter.en-US.mdx
  • src/pages/reference/tools/address-converter.zh-CN.mdx
  • src/pages/start/app.en-US.mdx
  • src/pages/start/app.zh-CN.mdx
  • src/pages/start/build.en-US.mdx
  • src/pages/start/build.zh-CN.mdx
  • wrangler.jsonc
💤 Files with no reviewable changes (28)
  • src/components/Home/components/svg/JoinCommunitySvgs.tsx
  • src/pages/developers/evm/evm.en-US.mdx
  • src/pages/developers/architecture/modules.en-US.mdx
  • src/pages/developers/evm/evm.zh-CN.mdx
  • src/pages/developers/tutorials/staking.zh-CN.mdx
  • src/components/Home/components/svg/EngineeringBlog.tsx
  • src/pages/developers/architecture/_meta.zh-CN.json
  • src/components/Home/components/JoinCommunity.tsx
  • src/pages/developers/tutorials/staking.en-US.mdx
  • src/components/Home/components/EngineeringBlog.tsx
  • app/api/chat/route.ts
  • src/components/Home/components/VideosSection.tsx
  • src/pages/developers/architecture/overview.en-US.mdx
  • src/pages/developers/architecture/modules.zh-CN.mdx
  • src/pages/developers/architecture/privileged.zh-CN.mdx
  • src/pages/developers/tutorials/_meta.en-US.json
  • src/components/Home/index.ts
  • src/components/Home/components/EcosystemCarousel/SlideItemsIndicator.tsx
  • src/pages/developers/tutorials/_meta.zh-CN.json
  • src/components/Home/Home.constants.tsx
  • src/pages/developers/architecture/overview.zh-CN.mdx
  • src/pages/developers/architecture/privileged.en-US.mdx
  • src/components/Home/components/EcosystemCarousel/EcosystemCarousel.tsx
  • src/components/Home/components/EcosystemCarousel/Slide.tsx
  • src/pages/developers/evm/_meta.zh-CN.json
  • src/components/Home/Home.graphql.contentful.ts
  • src/pages/developers/evm/_meta.en-US.json
  • src/pages/developers/architecture/_meta.en-US.json
✅ Files skipped from review due to trivial changes (9)
  • .gitignore
  • src/pages/_meta.zh-CN.json
  • src/pages/developers/overview.en-US.mdx
  • src/pages/_meta.en-US.json
  • src/pages/developers/evm.zh-CN.mdx
  • src/pages/developers/overview.zh-CN.mdx
  • src/pages/developers/_meta.en-US.json
  • src/components/shared/components/Layout/Layout.constants.tsx
  • src/pages/developers/evm.en-US.mdx

Comment thread .github/workflows/deploy.yml Outdated
Comment on lines +158 to +162
- name: Delete preview worker
run: |
WORKER_NAME="zetachain-docs-pr-${{ github.event.pull_request.number }}"
npx wrangler delete --name "$WORKER_NAME" --force
env:

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.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

# First, let's check if the deploy.yml file exists and read it
git ls-files '.github/workflows/deploy.yml'

Repository: zeta-chain/docs

Length of output: 88


🏁 Script executed:

# Read the deploy.yml file to examine the cleanup-preview job and others
cat -n .github/workflows/deploy.yml

Repository: zeta-chain/docs

Length of output: 8105


Align cleanup-preview job with pinned Wrangler version used in other jobs.

The cleanup-preview job uses npx wrangler delete without setting up dependencies, while the deploy and deploy-preview jobs establish a controlled environment with yarn install --frozen-lockfile and invoke yarn wrangler. This inconsistency means the cleanup command may resolve a different Wrangler version, potentially causing worker deletion to fail. Add checkout, Node setup, and yarn install steps to ensure consistent tooling across all jobs.

Suggested fix
   cleanup-preview:
     if: github.event_name == 'pull_request' && github.event.action == 'closed'
     runs-on: ubuntu-latest
     steps:
+      - uses: actions/checkout@v4
+      - uses: actions/setup-node@v4
+        with:
+          node-version: 20
+          cache: yarn
+      - run: yarn install --frozen-lockfile
       - name: Delete preview worker
         run: |
           WORKER_NAME="zetachain-docs-pr-${{ github.event.pull_request.number }}"
-          npx wrangler delete --name "$WORKER_NAME" --force
+          yarn wrangler delete --name "$WORKER_NAME" --force
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/deploy.yml around lines 158 - 162, The cleanup-preview job
currently runs npx wrangler delete (using WORKER_NAME="zetachain-docs-pr-${{
github.event.pull_request.number }}") without reproducing the same pinned
toolchain as deploy/deploy-preview; update the cleanup-preview job to mirror the
other jobs by adding actions/checkout, actions/setup-node with the repo Node
version, and a yarn install --frozen-lockfile step, then replace npx wrangler
delete with the pinned invocation (yarn wrangler delete --name "$WORKER_NAME"
--force) so the same Wrangler version is used for worker deletion.

Comment thread next.config.js Outdated
Comment on lines +9 to +11
import("@opennextjs/cloudflare")
.then(({ initOpenNextCloudflareForDev }) => initOpenNextCloudflareForDev())
.catch(() => {});

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.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Avoid swallowing Cloudflare dev-init failures silently.

On Line 11, the empty catch suppresses actionable errors and makes local binding issues opaque. At least log a warning.

Suggested fix
 if (process.env.NODE_ENV !== "production") {
   import("`@opennextjs/cloudflare`")
     .then(({ initOpenNextCloudflareForDev }) => initOpenNextCloudflareForDev())
-    .catch(() => {});
+    .catch((error) => {
+      // Keep dev boot resilient, but make failures visible.
+      // eslint-disable-next-line no-console
+      console.warn("Cloudflare dev bindings init failed:", error);
+    });
 }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
import("@opennextjs/cloudflare")
.then(({ initOpenNextCloudflareForDev }) => initOpenNextCloudflareForDev())
.catch(() => {});
import("`@opennextjs/cloudflare`")
.then(({ initOpenNextCloudflareForDev }) => initOpenNextCloudflareForDev())
.catch((error) => {
// Keep dev boot resilient, but make failures visible.
// eslint-disable-next-line no-console
console.warn("Cloudflare dev bindings init failed:", error);
});
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@next.config.js` around lines 9 - 11, The dynamic import promise for
`@opennextjs/cloudflare` currently swallows errors in the .catch(() => {})
handler; update the catch to surface the failure by logging the error (e.g.,
console.warn or a logger) and include the thrown error details and context
(mentioning initOpenNextCloudflareForDev) so local Cloudflare dev-init failures
aren't silent—replace the empty catch with a handler that logs a descriptive
warning plus the error object.

Comment thread package.json Outdated
"scripts": {
"build": "NODE_OPTIONS=--max-old-space-size=6144 yarn clean && yarn graphql-codegen && next build",
"postbuild": "next-sitemap",
"build:cloudflare": "yarn build && node scripts/patch-cloudflare-deps.mjs && opennextjs-cloudflare build --dangerouslyUseUnsupportedNextVersion",

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.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🌐 Web query:

For @opennextjs/cloudflare v1.17.1, what Next.js versions are officially supported? Is next@14.2.33 supported without --dangerouslyUseUnsupportedNextVersion?

💡 Result:

For @opennextjs/cloudflare v1.17.1, the officially supported Next.js versions are Next.js 14, 15, and 16 [1]. Specifically, the adapter supports the latest minor and patch versions of these major releases [1]. Regarding your question about next@14.2.33: Yes, it is supported without needing the --dangerouslyUseUnsupportedNextVersion flag. The adapter's version check logic requires Next.js 14.2 or greater [2], and next@14.2.33 falls well within the supported range for the 14.x line [1]. As of May 2026, the peer dependency requirements for @opennextjs/cloudflare have been refined to ensure compatibility with stable releases, specifically requiring next >=15.5.15 <16 || >=16.2.6 [3][4]. While Next.js 14 is supported, it is noted that official support for Next.js 14 by the Next.js team has ended [1].

Citations:


🏁 Script executed:

cat package.json | head -30

Repository: zeta-chain/docs

Length of output: 1650


🏁 Script executed:

cat package.json | grep -A 5 -E '"(next|`@opennextjs/cloudflare`)"'

Repository: zeta-chain/docs

Length of output: 471


Upgrade Next.js to a version within the officially supported range for @opennextjs/cloudflare v1.17.1 and remove the --dangerouslyUseUnsupportedNextVersion flag.

The repository uses next@14.2.33, which falls outside the currently supported peer dependency range for @opennextjs/cloudflare (next >=15.5.15 <16 || >=16.2.6 as of May 2026). The --dangerouslyUseUnsupportedNextVersion flag on line 9 serves as a workaround for this version mismatch, introducing unnecessary deployment risk. Upgrade Next.js to version 15.5.15 or later (or 16.2.6+ for the 16.x line) and remove the flag from the build pipeline.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` at line 9, Update the Next.js dependency to a supported release
(e.g., set "next" to at least 15.5.15 or 16.2.6+) in package.json and remove the
--dangerouslyUseUnsupportedNextVersion flag from the "build:cloudflare" npm
script so the script "build:cloudflare" becomes safe to run with
`@opennextjs/cloudflare` v1.17.1; after changing the "next" version, run install
and validate the build to ensure compatibility with any breaking changes.

fadeev added 2 commits May 18, 2026 10:25
Move details, api, and openapi pages from reference/network/ up to
reference/ so they appear directly under the Tools section. Delete the
contract addresses page along with its now-orphaned ContractAddresses
component. Update all cross-references and the maintained llms.txt /
llms-full.txt entries.
- Updated Home.constants.tsx to modify SHIP_FASTER_CARD_LINKS with new links and descriptions.
- Refactored BuildForNow component to enhance messaging and replace chain SVGs with model SVGs.
- Removed Ecosystem component from HomePage and its associated loading logic.
- Adjusted NarrowCardLinkContent to ensure SVGs scale correctly.
- Updated ShipFaster component to reflect new branding and messaging for ZetaChain.
- Created new ModelSvgs.tsx file to house SVGs for various AI models.
- Added ZetaChainSvg to ShipFasterSvgs.tsx for branding consistency.
- Modified gradient definitions in FadeRightSvg for improved visual consistency.
@fadeev fadeev marked this pull request as ready for review June 1, 2026 14:41
@fadeev fadeev merged commit 1b9d2d5 into main Jun 1, 2026
5 of 6 checks passed
@fadeev fadeev deleted the test-branch-content branch June 1, 2026 14:49
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