Official documentation site for v1ta - The Decentralized Stablecoin of Solana.
Built with Fumadocs, Next.js 15, and Tailwind CSS v4.
# Install dependencies
bun install
# Start development server
bun run dev
# Build for production
bun run build
# Start production server
bun run startVisit http://localhost:3000 to view the documentation.
- Create an MDX file in the appropriate directory:
touch content/docs/your-section/your-page.mdx- Add frontmatter:
---
title: Your Page Title
description: Brief description
icon: IconName
---
# Your Content Here- Update
meta.jsonin the directory:
{
"title": "Your Section",
"pages": ["existing-page", "your-page"]
}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>The site uses Fumadocs MDX for processing documentation:
- source.config.ts: Defines docs and meta collections
- .source/: Auto-generated exports (created on build/dev)
- src/lib/source.ts: Loader configuration
- tsconfig.json: Path alias for
@/.source
MDX files are automatically processed with:
- Syntax highlighting
- Component support
- Auto-generated navigation
- Search indexing
vercelThe site will be automatically built and deployed.
No environment variables required for the documentation site.
β 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
- β Complete protocol overview
- β Detailed CDP mechanism explanation
- β Liquidation process
- β Redemption mechanics
- β Collateral types
- β Fee structure
- β System architecture
- β Smart contract breakdown
- β State account structures
- β All 8 instructions documented
- β Oracle integration (Pyth)
- β Security analysis
- β marginfi flash loan examples
- β Drift perps trading strategies
- β Risk management patterns
- β Cross-protocol monitoring
- β TypeScript examples
- β SDK usage guide
- β PDA derivation helpers
- β Transaction builders
- β Error handling
The .source directory is auto-generated. Make sure:
- You've run
bun run devorbun run build - The
source.config.tsfile exists - The
tsconfig.jsonincludes the path alias:
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"],
"@/.source": ["./.source"]
}
}
}Common issues:
- Avoid
<in tables (use "less than" or escape it) - Import all components you use
- Check for unclosed JSX tags
Try:
# Clear Next.js cache
rm -rf .next
# Reinstall dependencies
rm -rf node_modules bun.lockb
bun install
# Restart dev server
bun run dev| 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 |
- Fork the repository
- Create a feature branch
- Add or update documentation
- Test locally with
bun run dev - Submit a pull request
Documentation is open source. See repository for license details.
- Live Site: docs.v1ta.xyz
- Main App: v1ta.xyz
- GitHub: github.com/v1ta-protocol
- Fumadocs: fumadocs.dev
Built with β€οΈ for the v1ta community on Solana.