Modern, elegant documentation for the next-generation omnichain DeFi vault powered by LayerZero.
- 📱 Mobile-Responsive: Perfect experience on all devices
- 🌙 Dark/Light Mode: Automatic theme switching with high contrast text
- 🔍 Advanced Search: Find information quickly
- 🌐 Multi-Chain Ready: Documentation for all supported networks
- 📊 Interactive Diagrams: Mermaid diagrams explaining complex concepts
- ⚡ Fast Loading: Optimized for speed and performance
- 🎨 Beautiful Design: Modern UI with Eagle branding
- Node.js 18 or higher
- npm or yarn package manager
# Clone the repository
git clone https://github.com/47-Eagle/docs.git
cd docs
# Install dependencies
npm install
# Start development server
npm run start
# Your documentation will be available at http://localhost:3000# Build static files
npm run build
# Serve locally to test
npm run servedocs/ # Developer Documentation
├── dev/ # Getting Started for Developers
│ ├── overview.md # Project overview
│ ├── quick-start.md # 10-minute setup guide
│ ├── architecture.md # System architecture deep dive
│ ├── deployment.md # Deployment instructions
│ ├── testing.md # Testing strategies
│ ├── security.md # Security considerations
│ └── vanity-addresses.md # Vanity address generation
├── concepts/ # Core Concepts
│ ├── layerzero-integration.md # LayerZero integration
│ ├── ovault-pattern.md # OVault pattern explanation
│ ├── dual-token-strategy.md # Dual-token strategy
│ └── cross-chain-flows.md # Cross-chain operation flows
├── contracts/ # Smart Contract Documentation
│ ├── eagle-ovault.md # Main vault contract
│ ├── share-oft-adapter.md # Share OFT adapter
│ ├── ovault-composer.md # OVault composer
│ ├── asset-ofts.md # Asset OFT contracts
│ └── share-oft.md # Share OFT contract
├── api/ # API Reference
│ ├── overview.md # API overview
│ ├── vault-operations.md # Vault operation APIs
│ ├── cross-chain.md # Cross-chain APIs
│ └── hardhat-tasks.md # Hardhat task reference
└── advanced/ # Advanced Topics
├── gas-optimization.md # Gas optimization techniques
├── monitoring.md # Monitoring and analytics
└── troubleshooting.md # Common issues and solutions
docs/users/ # User-Friendly Documentation
├── index.mdx # Welcome page for users
├── charm-finance-integration.mdx # 3D visualization
├── vault-operations.md # How to use the vault
├── withdrawals-and-liquidity.md # Withdrawals
└── user-faq.md # Frequently asked questions
- Comprehensive: Complete technical documentation
- Code Examples: Real, working code snippets
- Architecture Diagrams: Visual system explanations
- Best Practices: Production-ready guidance
- Plain English: No unnecessary jargon
- Step-by-Step: Clear, actionable instructions
- Visual Aids: Diagrams and flowcharts
- FAQ Section: Common questions answered
- High Contrast: Text optimized for readability
- Screen Reader Compatible: Proper semantic HTML
- Keyboard Navigation: Full keyboard accessibility
- Mobile Optimized: Works perfectly on all devices
The site is configured in docusaurus.config.ts with:
- Eagle branding and colors
- LayerZero and Uniswap external links
- GitHub integration for editing
- Mermaid diagram support
- Custom CSS with Eagle theme
Organized into two main sections:
- 👨💻 Developers: Technical documentation
- 👤 Users: User-friendly guides
- Eagle purple primary color (
#4f46e5) - High contrast text for accessibility
- Modern design with subtle gradients
- Dark mode optimized for developers
The documentation automatically deploys to GitHub Pages when you push to the main branch:
- GitHub Actions builds the site
- Generated files are pushed to
gh-pagesbranch - Site is available at
https://47-Eagle.github.io/docs/
# Deploy to GitHub Pages
GIT_USER=<your-github-username> npm run deployWe welcome contributions to improve the documentation!
- Typos: Fix directly via GitHub's edit button
- Small Changes: Make PR with clear description
- New Content: Follow existing structure and style
- Open Issue: Discuss significant changes first
- Fork Repository: Create your own copy
- Create Branch: Use descriptive branch name
- Make Changes: Follow style guide
- Test Locally: Ensure everything works
- Submit PR: Clear title and description
- Headings: Use sentence case with emojis
- Code Blocks: Always specify language
- Links: Use descriptive link text
- Diagrams: Use Mermaid for technical diagrams
- Tone: Professional but friendly
- Build Times: Monitored via GitHub Actions
- Lighthouse Scores: Regular performance audits
- Bundle Size: Optimized for fast loading
Ready for Google Analytics integration:
// In docusaurus.config.ts
gtag: {
trackingID: 'G-XXXXXXXXXX',
anonymizeIP: true,
}npm run start # Start development server
npm run build # Build for production
npm run serve # Serve production build
npm run clear # Clear Docusaurus cache
npm run typecheck # TypeScript type checking
npm run swizzle # Customize Docusaurus components# Generate new documentation
npm run docusaurus docs:version 1.0.0
# Add translations
npm run write-translations
# Generate heading IDs
npm run write-heading-idsThe documentation is optimized for search engines:
- Meta Descriptions: Each page has descriptive meta tags
- Structured Data: Schema.org markup for better indexing
- Sitemap: Automatically generated sitemap.xml
- Open Graph: Social media sharing optimization
- Fast Loading: Optimized for Core Web Vitals
Ready for multiple languages:
// In docusaurus.config.ts
i18n: {
defaultLocale: 'en',
locales: ['en', 'es', 'fr', 'zh'], // Add languages as needed
}The documentation works as a PWA:
- Offline Support: Cache important pages
- App-like Experience: Install on mobile devices
- Fast Loading: Service worker caching
- Push Notifications: (Optional) Update notifications
Build Fails
# Clear cache and reinstall
npm run clear
rm -rf node_modules package-lock.json
npm install
npm run buildStyling Issues
# Check CSS compilation
npm run start
# Open browser dev tools to inspect stylesLink Errors
# Check for broken links
npm run build
# Look for broken link warnings in output- Documentation Issues: Open GitHub issue
- Docusaurus Help: Check Docusaurus documentation
- Technical Support: Contact the Eagle team
This documentation is licensed under the MIT License. See the LICENSE file for details.
Built with amazing open-source projects:
- Docusaurus: Documentation framework
- LayerZero: Omnichain infrastructure
- Mermaid: Diagram generation
- Prism: Syntax highlighting
📚 Documentation for the future of omnichain DeFi! Built with ❤️ by the Eagle team.