Skip to content

Arch-Network/docs-fumadocs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

51 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Arch Network Documentation - Fumadocs

This repository contains the Arch Network documentation migrated from GitBook to Fumadocs, a modern React-based documentation framework.

πŸš€ Quick Start

Prerequisites

  • Node.js v19+
  • npm or yarn

Installation

# Clone the repository
git clone https://github.com/Arch-Network/docs-fumadocs.git
cd docs-fumadocs

# Install dependencies
npm install

# Start development server
npm run dev

The documentation will be available at http://localhost:3000.

Building for Production

npm run build
npm start

πŸš€ Deployment

This documentation site can be deployed to multiple platforms:

Vercel (Current)

The site is currently deployed on Vercel. Pushes to main automatically trigger deployments.

AWS Amplify (Terraform + GitHub Actions) ⭐

Production-ready automated deployment system with Infrastructure as Code.

πŸ“˜ New to this? Start with AWS_DEPLOYMENT_SUMMARY.md for a complete overview.

Quick Links:

Quick start:

cd terraform
./setup.sh
# Follow the interactive prompts

Manual deployment:

cd terraform
make init
make plan
make apply

See the terraform/ directory for detailed Terraform configuration.

Cost comparison:

  • Vercel: $0-20/month (Hobby/Pro)
  • AWS Amplify: $5-20/month
  • AWS ECS/EKS: $50-300/month (not recommended for docs)

CI/CD Pipeline

GitHub Actions workflows are pre-configured for:

  • βœ… Automated testing and linting on PRs
  • βœ… Terraform validation and planning
  • βœ… Automatic deployment to AWS Amplify
  • βœ… Deployment notifications

Setup:

  1. Add GitHub Secrets (AWS credentials, GitHub token)
  2. Merge to main β†’ Automatically deploys!

See .github/workflows/README.md and DEPLOYMENT.md for details.

πŸ“ Project Structure

docs-fumadocs/
β”œβ”€β”€ content/
β”‚   └── docs/                 # Documentation content (MDX files)
β”‚       β”œβ”€β”€ getting-started/  # Getting started guides
β”‚       β”œβ”€β”€ concepts/         # Core concepts
β”‚       β”œβ”€β”€ guides/           # Development guides
β”‚       β”œβ”€β”€ sdk/              # SDK documentation
β”‚       β”œβ”€β”€ rpc/              # RPC API reference
β”‚       └── meta.json         # Navigation structure
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/                  # Next.js app directory
β”‚   β”œβ”€β”€ lib/                  # Utility functions
β”‚   └── mdx-components.tsx    # MDX component overrides
β”œβ”€β”€ public/
β”‚   └── images/               # Static assets
└── package.json

πŸ“ Content Migration Status

βœ… Completed

  • Project setup and configuration
  • Main introduction page
  • Quick start guide
  • Architecture overview
  • Basic navigation structure
  • Image assets migration

🚧 In Progress

  • Theme customization for Arch Network branding
  • Additional content migration from GitBook
  • Search functionality optimization
  • Mobile responsiveness improvements

πŸ“‹ Pending

  • Complete migration of all GitBook content
  • API reference documentation
  • SDK documentation
  • Program examples and guides
  • System program documentation

🎨 Customization

Theme Customization

The Fumadocs theme can be customized by modifying:

  • src/app/global.css - Global styles
  • src/lib/layout.shared.tsx - Shared layout components
  • content/docs/meta.json - Navigation structure

Adding New Content

  1. Create MDX files in the appropriate directory under content/docs/
  2. Update content/docs/meta.json to include the new pages in navigation
  3. Use Fumadocs components like <Cards>, <Card>, <Callout>, etc.

MDX Components Available

  • <Cards> and <Card> - For creating card layouts
  • <Callout> - For info, warning, and tip callouts
  • <Tabs> and <Tab> - For tabbed content
  • <Steps> and <Step> - For step-by-step guides

πŸ”§ Development

Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run start - Start production server
  • npm run lint - Run ESLint

Key Features

  • Modern React Framework: Built with Next.js 15 and React 19
  • MDX Support: Write documentation with JSX components
  • Type Safety: Full TypeScript support
  • Search: Built-in search functionality
  • Responsive Design: Mobile-first responsive design
  • Dark Mode: Automatic dark/light mode support

πŸ“š Migration from GitBook

This documentation was migrated from the original GitBook repository. Key changes:

  1. Format: Converted from Markdown to MDX for enhanced functionality
  2. Components: Replaced GitBook-specific components with Fumadocs equivalents
  3. Navigation: Restructured navigation using Fumadocs meta.json format
  4. Styling: Updated to use Tailwind CSS and Fumadocs design system

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test locally with npm run dev
  5. Submit a pull request

πŸ“„ License

This documentation is part of the Arch Network project and follows the same licensing terms.

πŸ”— Links

About

Arch Network Documentation - Fumadocs Migration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published