Skip to content

oak-network/docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

43 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Oak Network Documentation

License: MIT Docusaurus Node.js React

Oak Network Documentation - Comprehensive documentation for the Oak Network crowdfunding protocol built with Docusaurus.

πŸ“‹ Table of Contents

πŸ“– Overview

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.

Documentation Sections

  • 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

πŸ”§ Prerequisites

  • Node.js 18+ and pnpm
  • Git for version control
  • Basic knowledge of Markdown and React (for contributions)

πŸš€ Installation

# Clone the repository
git clone https://github.com/oak-network/docs.git
cd docs/oaknetwork

# Install dependencies
pnpm install

πŸ’» Development

Start Development Server

# Start the development server
pnpm start

# The site will be available at http://localhost:3000

Build Documentation

# Build the documentation for production
pnpm build

# The built files will be in the 'build' directory

Serve Production Build

# Serve the production build locally
pnpm serve

# The site will be available at http://localhost:3000

πŸ“ Content Management

Adding New Pages

  1. Create a new Markdown file in the docs/ directory
  2. Add the page to sidebars.ts for navigation
  3. Use proper frontmatter for metadata
---
title: "Page Title"
description: "Page description"
---

# Page Content

Your content here...

Adding Blog Posts

  1. Create a new Markdown file in blog/ directory
  2. Use the format: YYYY-MM-DD-title.md
  3. Include proper frontmatter
---
slug: post-title
title: "Post Title"
authors: [author-name]
tags: [tag1, tag2]
---

# Post Content

Your blog post content...

Custom Components

  • Mermaid Diagrams - Use the MermaidDiagram component for interactive diagrams
  • Custom React Components - Add to src/components/
  • Styling - Modify src/css/custom.css

🀝 Contributing

We welcome contributions to improve the documentation! Please read our Contributing Guide for detailed information.

Quick Start

# 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

Types of Contributions

  • πŸ“ 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

πŸ“ Content Standards

Markdown Guidelines

# 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]
```

πŸš€ Deployment

Development

# Start development server
npm start

Production Build

# Build for production
npm run build

# Serve production build
npm run serve

GitHub Pages

# Deploy to GitHub Pages
npm run deploy

Custom Deployment

The 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

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ†˜ Support

πŸ™ Acknowledgments

  • 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

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published