Oak Network Documentation - Comprehensive documentation for the Oak Network crowdfunding protocol built with Docusaurus.
- Overview
- Prerequisites
- Installation
- Development
- Testing
- Deployment
- Contributing
- Code Standards
- Security
- License
This repository contains the documentation for Oak Network, a decentralized crowdfunding protocol built on the Celo blockchain. The documentation is built with Docusaurus and provides comprehensive guides for developers, users, and contributors.
- Concepts - Understanding Oak Network's architecture and core concepts
- Smart Contracts - Detailed API reference for all smart contracts
- Integration Guides - Step-by-step guides for developers
- Security - Security model, audits, and best practices
- Deployment - Deployment guides for different networks
- API Reference - Complete API documentation
- Node.js 18+ and pnpm
- Git for version control
- Basic knowledge of Markdown and React (for contributions)
# Clone the repository
git clone https://github.com/oak-network/docs.git
cd docs/oaknetwork
# Install dependencies
pnpm install# Start the development server
pnpm start
# The site will be available at http://localhost:3000# Build the documentation for production
pnpm build
# The built files will be in the 'build' directory# Serve the production build locally
pnpm serve
# The site will be available at http://localhost:3000- Create a new Markdown file in the
docs/directory - Add the page to
sidebars.tsfor navigation - Use proper frontmatter for metadata
---
title: "Page Title"
description: "Page description"
---
# Page Content
Your content here...- Create a new Markdown file in
blog/directory - Use the format:
YYYY-MM-DD-title.md - Include proper frontmatter
---
slug: post-title
title: "Post Title"
authors: [author-name]
tags: [tag1, tag2]
---
# Post Content
Your blog post content...- Mermaid Diagrams - Use the
MermaidDiagramcomponent for interactive diagrams - Custom React Components - Add to
src/components/ - Styling - Modify
src/css/custom.css
We welcome contributions to improve the documentation! Please read our Contributing Guide for detailed information.
# Fork and clone the repository
git clone https://github.com/your-username/docs.git
cd docs/oaknetwork
# Install dependencies
npm install
# Create a feature branch
git checkout -b feature/your-feature-name
# Start development server
npm start
# Make your changes and test
npm run build
# Commit and push
git add .
git commit -m "docs: improve your section"
git push origin feature/your-feature-name
# Open a Pull Request- π Content Updates - Improve existing documentation
- β¨ New Pages - Add new documentation sections
- π¨ UI/UX - Improve design and user experience
- π Bug Fixes - Fix broken links, typos, etc.
- π Translations - Translate documentation
- π Diagrams - Add or improve Mermaid diagrams
# Use proper heading hierarchy
## Section headings
### Subsection headings
**Bold text** for emphasis
*Italic text* for subtle emphasis
`code` for inline code
```javascript
// Code blocks with syntax highlighting
const example = "Hello World";- Use bullet points for lists
- Keep lines under 80 characters
- Use descriptive link text
### Writing Style
- **Clear and concise** - Write for your audience
- **Consistent tone** - Professional but approachable
- **Active voice** - Use "you" instead of "one"
- **Short sentences** - Break up complex ideas
- **Examples** - Include practical examples
### File Organization
docs/ βββ concepts/ # Core concepts βββ contracts/ # Smart contract docs βββ guides/ # Integration guides βββ security/ # Security documentation βββ deployment/ # Deployment guides
blog/ βββ 2024-12-20-*.md # Blog posts βββ authors.yml # Author information
### Mermaid Diagrams
```markdown
import MermaidDiagram from '@site/src/components/MermaidDiagram';
<MermaidDiagram title="Architecture Overview">
```mermaid
graph TB
A[User] --> B[Contract]
B --> C[Result]
# Start development server
npm start# Build for production
npm run build
# Serve production build
npm run serve# Deploy to GitHub Pages
npm run deployThe built files in the build/ directory can be deployed to any static hosting service:
- Vercel - Connect your GitHub repository
- Netlify - Drag and drop the build folder
- AWS S3 - Upload build files to S3 bucket
- Cloudflare Pages - Connect your repository
This project is licensed under the MIT License - see the LICENSE file for details.
- Documentation: docs.oaknetwork.org
- Discord: Join our community
- GitHub Issues: Report issues
- Email: docs@oaknetwork.org
- Docusaurus - Documentation framework
- React - UI library
- Mermaid - Diagram generation
- Community - Feedback, contributions, and support
Built with β€οΈ by the Oak Network team
Comprehensive documentation for decentralized crowdfunding