🌙 Official Developer Documentation for Moonchain (MCH) - A comprehensive guide for developers, covering smart contracts, testnet tutorials, design documentation, and resources.
This repository contains the complete developer documentation for Moonchain, built with Astro Starlight. The documentation covers everything from basic setup to advanced blockchain development on the Moonchain ecosystem.
- 🔗 Contract Documentation - Complete smart contract references and APIs
- 🧪 Testnet Tutorials - Step-by-step guides for Hudson Testnet
- 🏗️ Mainnet Tutorials - Production deployment guides
- 🎨 Moonchain Design - Architecture and design principles
- 📚 Resources - Additional tools, links, and references
- Node.js 18+
- npm or yarn
# Clone the repository
git clone https://github.com/JDI-Group/MCH-Docs.git
cd MCH-Docs
# Install dependencies
npm install
# Start development server
npm run devVisit http://localhost:4321 to view the documentation locally.
MCH-Docs/
├── public/
│ ├── img/ # Documentation images
│ └── Brand/ # MCH brand assets
├── src/
│ ├── content/
│ │ └── docs/
│ │ ├── contract-documentation/
│ │ ├── testnet-tutorials/
│ │ ├── mainnet-tutorials/
│ │ ├── moonchain-design/
│ │ ├── resources/
│ │ └── index.mdx
│ └── styles/
│ └── custom.css # MCH brand customizations
├── astro.config.mjs # Starlight configuration
└── package.json
This documentation follows Moonchain's official brand guidelines:
- Colors: Primary (#D2F159), Secondary (#a8cc47)
- Fonts: Nunito (headings), Inter (code/monospace)
- Theme: Custom light/dark mode support
| Command | Action |
|---|---|
npm install |
Install dependencies |
npm run dev |
Start local dev server at localhost:4321 |
npm run build |
Build production site to ./dist/ |
npm run preview |
Preview build locally |
npm run astro ... |
Run Astro CLI commands |
We welcome contributions to improve the MCH documentation! Here's how you can help:
- New Tutorial: Add
.mdfiles to appropriate folders insrc/content/docs/ - Images: Place images in
public/img/with descriptive names - Navigation: Update
astro.config.mjssidebar configuration if needed
- Use clear, concise language
- Include code examples where applicable
- Add screenshots for UI-based tutorials
- Follow the existing document structure
- Fork the repository
- Create a feature branch (
git checkout -b feature/new-tutorial) - Commit your changes (
git commit -m 'Add new tutorial') - Push to the branch (
git push origin feature/new-tutorial) - Create a Pull Request
The documentation is automatically deployed via GitHub Pages/Vercel when changes are pushed to the main branch.
# Build the site
npm run build
# The built site will be in ./dist/- Moonchain Website: moonchain.com
- Developer Portal: dev.moonchain.com
- GitHub Issues: Report bugs or request features
- Community: Join our Discord for developer discussions
This documentation is open source and available under the MIT License.
- Astro - Static site generator
- Starlight - Documentation framework
- TypeScript - Type safety
- Tailwind CSS - Styling framework
Happy building on Moonchain! 🌙✨