Skip to content
/ docs Public

Documentation site for Uncap, a decentralized, Bitcoin-backed stablecoin protocol built on Starknet, inspired by Liquity v2.

Notifications You must be signed in to change notification settings

UncapLabs/docs

Repository files navigation

Uncap Finance Documentation

This website is built using Docusaurus, a modern static website generator, and deployed using Cloudflare Pages with Wrangler.

Installation

pnpm install

Local Development

pnpm start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

pnpm build

This command generates static content into the build directory optimized for production deployment.

Preview

Local Preview (Development Build)

pnpm preview

This builds the site with local-friendly settings (baseUrl: "/") and serves it using Wrangler for local testing.

Production Preview

pnpm run preview:prod

This builds the site with production settings (baseUrl: "/resources") and serves it locally using Wrangler to test the exact production build.

Deployment

Deploy to Cloudflare Pages:

pnpm deploy

This command builds the website for production and deploys it to Cloudflare Pages using Wrangler.

Other Commands

Development Tools

# Clear Docusaurus cache
pnpm clear

# Type checking
pnpm typecheck

# Serve built files locally
pnpm serve

Content Management

# Generate translation files
pnpm run write-translations

# Generate heading IDs for markdown files
pnpm run write-heading-ids

Customization

# Swizzle Docusaurus components for customization
pnpm swizzle

Project Structure

  • /docs - Documentation content
  • /blog - Blog posts
  • /src - Custom React components and pages
  • /static - Static assets (images, files)
  • docusaurus.config.ts - Site configuration
  • sidebars.ts - Documentation sidebar configuration

Environment Configuration

The site uses different base URLs for different environments:

  • Development (pnpm start): baseUrl: "/"
  • Local Preview (pnpm preview): baseUrl: "/"
  • Production (pnpm deploy): baseUrl: "/resources"

This ensures the site works correctly both locally and when deployed to https://uncap.finance/resources/.

About

Documentation site for Uncap, a decentralized, Bitcoin-backed stablecoin protocol built on Starknet, inspired by Liquity v2.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •