Commit 53fb493
Complete Coins Documentation Overhaul with Native Mermaid Support (#1327)
## Summary
This PR delivers a comprehensive overhaul of the Zora Coins documentation with improved user experience, native Mermaid diagram support, and better navigation structure. The changes transform the documentation from technical reference material into practical developer guides while fixing broken links and improving overall organization.
## 🎯 Key Improvements
### 📚 Documentation Transformation
- **Native Mermaid Support**: Implemented `remark-mermaidjs` plugin for native ````mermaid syntax instead of React components
- **User-Centric Design**: Restructured all documentation to focus on "how to use" rather than technical implementation details
- **Improved Navigation**: Fixed broken links, updated navigation structure, and reorganized content hierarchy
- **Practical Examples**: Added extensive Solidity code examples with proper ABI encoding structures
- **Authentic Messaging**: Updated language to align with authentic Zora terminology
### 🏗️ Content Structure Overhaul
- **Renamed Pages**: `factory.mdx` → `creating-a-coin.mdx` for better discoverability
- **New Architecture Page**: Comprehensive technical deep-dive separated from user guides
- **Protocol Branding**: Updated "Zora Protocol" → "Zora Coins Protocol" throughout
- **Reward System**: Renamed "Protocol Rewards" → "Coin Rewards" for clarity
## 📋 Major Documentation Changes
### New Content Structure
- **Coins Homepage** (`/coins/index.mdx`): Complete redesign focusing on protocol overview and developer resources
- **Creating a Coin** (`/coins/contracts/creating-a-coin.mdx`): Developer-focused guide with proper ABI encoding examples
- **Architecture** (`/coins/contracts/architecture.mdx`): Technical deep-dive with UML diagrams
- **Contracts Overview** (`/coins/contracts/index.mdx`): Simplified navigation hub with contract summaries
### Native Mermaid Integration
- **Removed Dependencies**: Eliminated `rehype-mermaid`, `mermaid`, `react-zoom-pan-pinch`
- **Added Plugin**: Configured `remark-mermaidjs` for native markdown processing
- **Converted Diagrams**: All React Mermaid components → native ````mermaid code blocks
### Technical Improvements
- **Fixed Pool Configuration**: Removed incorrect fee configuration, added proper ABI encoding structure
- **Doppler Integration**: Added references to [Doppler protocol](https://whetstone.cc/doppler) for initial liquidity positioning
- **Creator Clarification**: Added important notes about `msg.sender` being considered the creator
- **Indexer Behavior**: Documented that only the first creator coin is recognized by the Zora indexer
### Content Quality Improvements
- **Removed Second-Person Language**: Eliminated "you/your" throughout documentation per style guidelines
- **Fixed Dead Links**: Updated all broken references from removed pages and renamed files
- **Strategic Cross-Linking**: Added internal links to improve user journey and discoverability
- **Homepage Card**: Updated main navigation card with better description
## 🔧 Technical Implementation Details
### Mermaid Configuration
```typescript
// docs/vocs.config.ts
import remarkMermaid from "remark-mermaidjs";
export default defineConfig({
markdown: {
remarkPlugins: [remarkMermaid],
},
});
```
### ABI Encoding Examples
Updated all pool configuration examples to show proper encoding:
```solidity
abi.encode(
uint8(4), // version
ZORA_TOKEN_ADDRESS, // currency
[-90000, -74000, -62000], // tickLower array
[-58500, -67000, -52000], // tickUpper array
[11, 11, 11], // numDiscoveryPositions
[0.05e18, 0.1e18, 0.1e18] // maxDiscoverySupplyShare (WAD)
)
```
### Navigation Structure
- **Fixed Links**: All `/coins/contracts/factory` → `/coins/contracts/creating-a-coin`
- **Updated Config**: Navigation properly reflects actual file structure
- **Removed Dead References**: Eliminated references to non-existent getting-started page
## 📝 Files Changed
### Documentation (18 files)
- Complete overhaul of coins documentation structure
- Native Mermaid diagram implementation
- Updated navigation and cross-references
- Fixed broken links and improved organization
### Configuration (3 files)
- Vocs configuration for Mermaid support
- Package.json dependency updates
- Navigation structure improvements
## 🚀 User Experience Impact
### For Developers
- **Clear Examples**: Proper Solidity code with correct ABI encoding
- **Better Flow**: Logical progression from overview → creation → technical details
- **Native Diagrams**: Mermaid diagrams render directly in documentation without React overhead
### For Content Creators
- **Simplified Language**: Removed technical jargon and second-person references
- **Better Organization**: Clear separation between user guides and technical reference
- **Authentic Voice**: Documentation now uses official Zora terminology and messaging
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 40e4a70 commit 53fb493
File tree
24 files changed
+3007
-1365
lines changed- docs
- pages
- coins
- contracts
- sdk
- queries
- public
- packages/coins
24 files changed
+3007
-1365
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
5 | 25 | | |
6 | 26 | | |
7 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
0 commit comments