๐Ÿ“šIntroduction

This repository contains the comprehensive documentation for DreamLend, the first decentralized P2P lending protocol built on Somnia L1.

๐Ÿš€ Quick Start

Prerequisites

  • Bun (recommended) or Node.js 18+

  • GitBook CLI for traditional GitBook features

Installation

# Install dependencies
bun install

# Or with npm
npm install

Development

# Start development server
bun run dev

# Or for GitBook specifically
cd packages/docs && gitbook serve

Building

๐Ÿ“– Documentation Structure

The documentation is organized into several key sections:

  • ๐Ÿ  Overview: Introduction and architecture

  • ๐ŸŽฏ Getting Started: Quick setup guides

  • ๐Ÿ‘ฅ User Guides: Detailed guides for lenders, borrowers, and liquidators

  • ๐Ÿ“‹ Smart Contracts: API documentation and contract details

  • ๐Ÿ”ฎ Oracle & Price Feeds: Oracle integration details

  • ๐Ÿ’Ž $DREAM Token: Tokenomics and rewards

  • ๐Ÿ› ๏ธ Developer Resources: Integration guides and SDKs

  • ๐Ÿ“Š API Reference: Complete API documentation

  • โ“ FAQ & Support: Common questions and troubleshooting

๐Ÿ—๏ธ Project Structure

๐Ÿ› ๏ธ Development Workflow

Adding New Documentation

  1. Create new markdown files in the appropriate directory under packages/docs/

  2. Update SUMMARY.md to include your new pages in the navigation

  3. Test locally with bun run dev

  4. Format code with bun run format

Available Scripts

๐ŸŽจ Styling and Customization

The documentation uses custom CSS located in packages/docs/styles/website.css with:

  • DreamLend branding colors

  • Responsive design

  • Dark/light mode support

  • Custom components and layouts

๐Ÿ“ Writing Guidelines

Markdown Standards

  • Use clear, descriptive headings

  • Include code examples with syntax highlighting

  • Add emojis for visual appeal and navigation

  • Use tables for structured data

  • Include links to related sections

Code Examples

API Documentation

  • Complete function signatures

  • Parameter descriptions

  • Return value details

  • Usage examples

  • Error handling

๐Ÿค Contributing

We welcome contributions to improve the documentation:

  1. Fork the repository

  2. Create a feature branch

  3. Make your changes

  4. Test locally

  5. Submit a pull request

Contribution Guidelines

  • Follow the existing formatting and style

  • Test all code examples

  • Update navigation in SUMMARY.md

  • Add screenshots for UI-related documentation

  • Keep content up-to-date with protocol changes

๐Ÿ“„ License

This documentation is licensed under the MIT License. See the LICENSEarrow-up-right file for details.

๐Ÿ†˜ Support

If you need help with the documentation:

  • Create an issue on GitHub

  • Join our Discord for real-time support

  • Email us at [email protected]


Built with โค๏ธ for the DreamLend community - Making DeFi accessible through comprehensive documentation.

Last updated