Skip to content

v1ta-labs/docs

Repository files navigation

v1ta Documentation

Official documentation site for v1ta - The Decentralized Stablecoin of Solana.

Built with Fumadocs, Next.js 15, and Tailwind CSS v4.

πŸš€ Quick Start

# Install dependencies
bun install

# Start development server
bun run dev

# Build for production
bun run build

# Start production server
bun run start

Visit http://localhost:3000 to view the documentation.

πŸ“ Writing Documentation

Create a New Page

  1. Create an MDX file in the appropriate directory:
touch content/docs/your-section/your-page.mdx
  1. Add frontmatter:
---
title: Your Page Title
description: Brief description
icon: IconName
---

# Your Content Here
  1. Update meta.json in the directory:
{
  "title": "Your Section",
  "pages": ["existing-page", "your-page"]
}

Available Components

Fumadocs provides several helpful components:

import { Callout } from 'fumadocs-ui/components/callout';
import { Steps, Step } from 'fumadocs-ui/components/steps';
import { Card, Cards } from 'fumadocs-ui/components/card';

<Callout type="info">
  Information callout
</Callout>

<Callout type="warning">
  Warning callout
</Callout>

<Steps>
  <Step>First step</Step>
  <Step>Second step</Step>
</Steps>

<Cards>
  <Card
    title="Card Title"
    description="Description"
    href="/link"
  />
</Cards>

πŸ”§ Configuration

Fumadocs Setup

The site uses Fumadocs MDX for processing documentation:

  1. source.config.ts: Defines docs and meta collections
  2. .source/: Auto-generated exports (created on build/dev)
  3. src/lib/source.ts: Loader configuration
  4. tsconfig.json: Path alias for @/.source

MDX Processing

MDX files are automatically processed with:

  • Syntax highlighting
  • Component support
  • Auto-generated navigation
  • Search indexing

πŸš€ Deployment

Vercel

vercel

The site will be automatically built and deployed.

Environment Variables

No environment variables required for the documentation site.

πŸ“– Key Features

βœ… Comprehensive Content

  • Full protocol documentation
  • Integration guides
  • Developer resources
  • User guides

βœ… Beautiful Design

  • Dark forest theme matching v1ta app
  • Smooth animations
  • Responsive layout
  • Custom scrollbars

βœ… Developer-Friendly

  • TypeScript throughout
  • Auto-generated navigation
  • Search functionality
  • MDX component support

βœ… Fast & Optimized

  • Next.js 15 with Turbopack
  • Optimized images
  • Fast page transitions
  • SEO-friendly

🎯 Content Highlights

Protocol Documentation (content/docs/protocol/)

  • βœ… Complete protocol overview
  • βœ… Detailed CDP mechanism explanation
  • βœ… Liquidation process
  • βœ… Redemption mechanics
  • βœ… Collateral types
  • βœ… Fee structure

Technical Documentation (content/docs/technical/)

  • βœ… System architecture
  • βœ… Smart contract breakdown
  • βœ… State account structures
  • βœ… All 8 instructions documented
  • βœ… Oracle integration (Pyth)
  • βœ… Security analysis

Integration Guides (content/docs/integrations/)

  • βœ… marginfi flash loan examples
  • βœ… Drift perps trading strategies
  • βœ… Risk management patterns
  • βœ… Cross-protocol monitoring

Developer Resources (content/docs/developer/)

  • βœ… TypeScript examples
  • βœ… SDK usage guide
  • βœ… PDA derivation helpers
  • βœ… Transaction builders
  • βœ… Error handling

πŸ› Troubleshooting

Module not found: @/.source

The .source directory is auto-generated. Make sure:

  1. You've run bun run dev or bun run build
  2. The source.config.ts file exists
  3. The tsconfig.json includes the path alias:
{
  "compilerOptions": {
    "paths": {
      "@/*": ["./src/*"],
      "@/.source": ["./.source"]
    }
  }
}

MDX Syntax Errors

Common issues:

  • Avoid < in tables (use "less than" or escape it)
  • Import all components you use
  • Check for unclosed JSX tags

Dev Server Won't Start

Try:

# Clear Next.js cache
rm -rf .next

# Reinstall dependencies
rm -rf node_modules bun.lockb
bun install

# Restart dev server
bun run dev

πŸ“¦ Scripts

Command Description
bun run dev Start development server with Turbopack
bun run build Build for production
bun run start Start production server
bun run lint Run ESLint

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add or update documentation
  4. Test locally with bun run dev
  5. Submit a pull request

πŸ“„ License

Documentation is open source. See repository for license details.

πŸ”— Links


Built with ❀️ for the v1ta community on Solana.

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •