A comprehensive documentation system for Cosmos SDK and Cosmos EVM chains, built with Mintlify.
- Default Landing Page:
docs/index.mdx
serves as the main entry point - Navigation Structure: Fully nested, collapsible sidebar navigation
- Redirect Setup: Root URL (
/
) automatically redirects to/docs/index
docs/
βββ index.mdx # Main landing page
βββ evm/ # EVM documentation
β βββ index.mdx # EVM overview
β βββ developers/ # Developer guides
β β βββ smart-contracts/ # Contract development
β β βββ tooling-and-resources/ # Development tools
β β βββ precompiles/ # Precompiled contracts
βββ api-reference/ # API documentation
β βββ cosmos-rest/ # REST API endpoints (113 endpoints)
β β βββ vm/ # EVM virtual machine
β β βββ erc20/ # ERC20 token module
β β βββ feemarket/ # Fee market management
β β βββ precisebank/ # Precise banking
β β βββ [29 other modules] # Core Cosmos SDK modules
β βββ evm-jsonrpc/ # EVM JSON-RPC API
β βββ index.mdx # Complete JSON-RPC reference
β βββ eth/ # Ethereum-compatible methods
βββ api-specs/ # OpenAPI specifications
βββ cosmos-sdk-complete.json # Complete REST API spec (155KB)
βββ cosmos-evm-jsonrpc.json # EVM JSON-RPC spec (6KB)
npx mintlify dev
npx mintlify build
# Start documentation service
systemctl start mint-docs
# Restart after changes
systemctl restart mint-docs
# Check status
systemctl status mint-docs
- Core Modules: 29 Cosmos SDK modules
- EVM Modules: 4 specialized modules (vm, feemarket, erc20, precisebank)
- Interactive Documentation: Full Mintlify integration with code samples
- Source: Generated from
cosmos/evm
repository protobuf definitions
- Ethereum Compatibility: Full Ethereum JSON-RPC specification
- Method Categories: eth, net, web3, debug, txpool namespaces
- WebSocket Support: Real-time subscriptions (eth_subscribe/unsubscribe)
- Development Tools: MetaMask, Hardhat, Foundry compatibility
-
Sync Protocol Buffers:
./scripts/sync-protos.sh
-
Generate OpenAPI Specifications:
python scripts/generate-openapi-specs.py
-
Generate Interactive Documentation:
npx @mintlify/scraping@latest openapi-file docs/api-specs/cosmos-sdk-complete.json -o docs/api-reference/cosmos-rest
-
Update Navigation (automatic via Mintlify scraper output)
-
Extract Methods:
python scripts/extract-jsonrpc-methods.py
-
Generate Documentation:
npx @mintlify/scraping@latest openapi-file docs/api-specs/cosmos-evm-jsonrpc.json -o docs/api-reference/evm-jsonrpc
- docs.json: Main configuration with nested navigation
- Landing page: Automatic redirect from root to
/docs/index
- API Integration: OpenAPI specs with multiple server endpoints
- Environment: Python virtual environments for generation scripts
{
"theme": "palm",
"colors": {
"primary": "#4B47CA",
"light": "#39A6A3",
"dark": "#22E2A8"
}
}
- Collapsible Groups: All directory structures are collapsible
- Icon Integration: Lucide icon library
- External Links: GitHub, Discord, Blog integration
- Search: Contextual search with custom prompts
- Multiple Servers: Mainnet, testnet, local development
- Authentication: Support for various auth methods
- Code Examples: Multi-language code samples
- Interactive Playground: Test API endpoints directly
# Python dependencies for generators
pip install pyyaml requests protobuf
# Node.js dependencies
npm install -g @mintlify/scraping
- Protobuf Sync: Automated repository synchronization
- OpenAPI Generation: Python-based spec generation
- Documentation Scraping: Mintlify automatic page generation
- Navigation Updates: Automated hierarchy creation
- JSON Validation: Automatic syntax checking
- Path Verification: File existence validation
- Link Checking: Navigation integrity
- Content Validation: Mintlify parsing verification
- REST API Spec: 155KB optimized OpenAPI 3.0
- JSON-RPC Spec: 6KB focused specification
- Interactive Pages: 113 REST + 2 JSON-RPC endpoints
- Navigation Tree: Fully nested, performant structure
- Static Assets: Long-term caching
- API Responses: Contextual caching
- Build Optimization: Incremental updates
- CDN Integration: Global content delivery
-
Missing File Warnings:
# Check for old navigation references grep -r "docs/api-reference" docs.json # Verify file existence find docs/api-reference -name "*.mdx" | sort
-
JSON Syntax Errors:
python3 -m json.tool docs.json
-
Mintlify Parsing Errors:
# Check for invalid React components grep -r "import React" docs/ # Validate OpenAPI specs npx swagger-codegen-cli validate -i docs/api-specs/cosmos-sdk-complete.json
-
Service Issues:
# Check service logs systemctl status mint-docs journalctl -u mint-docs -f
# Verify all navigation references exist
python3 -c "
import json
import os
with open('docs.json') as f:
config = json.load(f)
# Add validation logic here
"
- Custom Domain: Configured via Mintlify dashboard
- SSL/TLS: Automatic certificate management
- CDN: Global content distribution
- Analytics: Integrated tracking and monitoring
# API endpoints
COSMOS_REST_URL=https://rest.cosmos.network
COSMOS_TESTNET_REST_URL=https://testnet-rest.cosmos.network
EVM_RPC_URL=https://evm-rpc.cosmos.network
- Build Status: Automated deployment checks
- Performance: Page load monitoring
- API Availability: Endpoint health checks
- User Analytics: Documentation usage metrics
- Mintlify Documentation: https://mintlify.com/docs
- Cosmos SDK: https://docs.cosmos.network
- EVM Module: https://github.com/cosmos/evm
- OpenAPI Specification: https://swagger.io/specification/
- Setup Development Environment
- Run Quality Checks
- Test Documentation Changes
- Submit Pull Request
For detailed contribution guidelines, see our development workflow above.
Last Updated: June 2025 Documentation Version: 1.0.0 API Coverage: 113 REST endpoints + Full JSON-RPC compatibility