The documentation uses top-level tabs to organize content for three main products under one unified documentation site:
┌─────────────────────────────────────────────────────────┐
│ [Berachain] [BEX] [Bend] │
└─────────────────────────────────────────────────────────┘
Purpose: Core blockchain documentation
Berachain/
├── Getting Started
│ └── Introduction
│
├── Learn
│ ├── Overview
│ ├── Proof-of-Liquidity
│ └── Tokenomics
│
├── Developers
│ └── Quickstart
│
└── Infrastructure
├── Node Setup
└── Validator Overview
Key Pages:
/berachain/introduction.mdx- Main landing page/berachain/learn/proof-of-liquidity.mdx- Core innovation/berachain/developers/quickstart.mdx- Developer onboarding
Purpose: Decentralized Exchange (DEX) documentation
BEX/
├── Overview
│ └── Introduction
│
├── User Guides
│ ├── Trading
│ └── Providing Liquidity
│
├── Developers
│ └── Integration Guide
│
└── Contracts
└── Smart Contract Overview
Key Pages:
/bex/introduction.mdx- BEX overview/bex/guides/trading.mdx- How to trade/bex/developers/integration.mdx- SDK integration
Purpose: Lending & Borrowing protocol documentation
Bend/
├── Overview
│ └── Introduction
│
├── User Guides
│ ├── Lending
│ └── Borrowing
│
├── Developers
│ └── Integration Guide
│
└── Contracts
└── Smart Contract Overview
Key Pages:
/bend/introduction.mdx- Bend overview/bend/guides/lending.mdx- How to lend/bend/developers/integration.mdx- SDK integration
1. Click "Berachain" tab
2. Read Introduction
3. Navigate to "Learn" → "Proof-of-Liquidity"
4. Navigate to "Learn" → "Tokenomics"
1. Click "BEX" tab
2. Read Introduction
3. Navigate to "User Guides" → "Trading"
4. Navigate to "User Guides" → "Providing Liquidity"
1. Click "Bend" tab
2. Read Introduction
3. Navigate to "Developers" → "Integration Guide"
4. Reference "Contracts" → "Smart Contract Overview"
- BEX → External link to https://bex.berachain.com
- Bend → External link to https://bend.berachain.com
- Faucet → External link to https://faucet.berachain.com
- Launch App (button) → https://berachain.com
- Website → https://berachain.com
- GitHub → https://github.com/berachain
- Discord → https://discord.gg/berachain
- Blog → https://blog.berachain.com
- Twitter (X)
- GitHub
- Discord
- Telegram
All navigation is configured in docs.json:
{
"navigation": {
"tabs": [
{
"tab": "Berachain",
"icon": "cube",
"groups": [...]
},
{
"tab": "BEX",
"icon": "arrow-right-arrow-left",
"groups": [...]
},
{
"tab": "Bend",
"icon": "hand-holding-dollar",
"groups": [...]
}
]
}
}Documentation frequently cross-references between tabs:
Learn how to trade on [BEX](/bex/guides/trading)Use your LP tokens as collateral in [Bend](/bend/guides/borrowing)Understand [Proof-of-Liquidity](/berachain/learn/proof-of-liquidity) to maximize BGT rewardsEach tab has an introduction that includes:
- Overview of the product
- Key features (CardGroup)
- Quick navigation cards
- Links to getting started guides
User-facing guides include:
- Step-by-step instructions (Steps component)
- Visual examples
- Code snippets where relevant
- Warnings and tips (callouts)
- Next steps section
Technical integration guides include:
- Installation instructions (CodeGroup)
- SDK examples
- Direct contract interaction
- React integration examples
- Error handling
- Best practices
Smart contract documentation includes:
- Contract addresses (tables)
- Key functions
- Security audits
- Links to verified source code
- Primary:
#E17726(Berachain orange) - Light:
#F89D4E - Dark:
#C96516
- Berachain: cube
- BEX: arrow-right-arrow-left
- Bend: hand-holding-dollar
<Card>- Navigation and feature highlights<CardGroup>- Grouped navigation<Steps>- Step-by-step instructions<Accordion>- FAQ and expandable content<Note>,<Tip>,<Warning>,<Check>- Callouts- Code blocks with syntax highlighting
- Tables for comparisons and data
- Use kebab-case:
proof-of-liquidity.mdx - Use descriptive names:
trading.mdx, notguide1.mdx - Group related content in folders:
/guides/,/developers/,/contracts/ - Main landing page:
introduction.mdx
- Create the file:
touch berachain/learn/new-topic.mdx- Add to
docs.json:
{
"group": "Learn",
"pages": [
"berachain/learn/overview",
"berachain/learn/proof-of-liquidity",
"berachain/learn/tokenomics",
"berachain/learn/new-topic" // Add here
]
}- Add frontmatter to the file:
---
title: "New Topic"
description: "Description of new topic"
---
# Content here{
"tab": "Berachain",
"groups": [
{
"group": "New Group Name",
"pages": ["berachain/new-group/page1", "berachain/new-group/page2"]
}
]
}https://docs.berachain.com/berachain/learn/proof-of-liquidity
└─tab─┘ └─group┘ └────page────┘
https://docs.berachain.com/bex/guides/trading
└tab┘ └group┘ └page┘
https://docs.berachain.com/bend/developers/integration
└tab┘ └──group──┘ └──page──┘
[Link text](/berachain/learn/proof-of-liquidity)
[Link text](/bex/guides/trading)
[Link text](/bend/guides/lending)Search is enabled by default and indexes all content across all three tabs. Users can search for content regardless of which tab they're on.
The tab navigation adapts to mobile:
- Tabs become a dropdown selector on mobile
- Sidebar navigation is collapsible
- All components are responsive
- Consistent Structure: Keep similar structures across all three tabs
- Cross-Reference: Link between tabs when concepts are related
- User-First: Write for the user's journey, not the tech stack
- Code Examples: Always include working code examples in developer guides
- Visual Hierarchy: Use components (Cards, Steps, etc.) to break up text
- Keep Updated: Update contract addresses when moving from testnet to mainnet
- Test Links: Ensure all internal and external links work
- SEO: Write descriptive titles and descriptions in frontmatter
This structure allows users to easily navigate between Berachain core documentation, BEX (DEX), and Bend (Lending) all within one unified documentation site!