heretek-openclaw-docs

Heretek OpenClaw Documentation

Official documentation site for Heretek OpenClaw, built with Next.js and deployed to GitHub Pages.

Overview

This repository contains the documentation site for Heretek OpenClaw, including:

Quick Start

Prerequisites

Installation

git clone https://github.com/heretek/heretek-openclaw-docs.git
cd heretek-openclaw-docs
npm install

Development

# Start development server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

Access the site at http://localhost:3000

Structure

heretek-openclaw-docs/
├── src/                    # Next.js source code
│   ├── app/               # App router pages
│   ├── components/        # Reusable components
│   └── styles/            # Global styles
├── content/               # Documentation content
│   ├── api/              # API documentation
│   ├── operations/       # Operations guides
│   ├── configuration/    # Configuration guides
│   └── deployment/       # Deployment guides
├── public/               # Static assets
└── package.json

Content Organization

Documentation Categories

Category Location Description
API content/api/ API reference documentation
Operations content/operations/ Runbooks and operational procedures
Configuration content/configuration/ Configuration guides and examples
Deployment content/deployment/ Deployment instructions
Architecture content/architecture/ System architecture documentation
Plugins content/plugins/ Plugin development guides

Content Format

Documentation uses Markdown with frontmatter:

---
title: Gateway Architecture
description: Overview of OpenClaw Gateway architecture
---

# Gateway Architecture

Content goes here...

Adding New Documentation

Create a New Page

  1. Create a new .mdx file in the appropriate content/ subdirectory
  2. Add frontmatter with title and description
  3. Write content using Markdown
  4. Add to navigation in src/config/navigation.ts

Example

---
title: My New Guide
description: How to do something with OpenClaw
order: 5
---

# My New Guide

## Introduction

This guide covers...

## Steps

1. First step
2. Second step
3. Third step

## Conclusion

Summary of what was covered.

Edit src/config/navigation.ts to update the sidebar:

export const navigation = {
  main: [
    {
      title: 'Getting Started',
      href: '/docs/getting-started',
    },
    {
      title: 'Architecture',
      href: '/docs/architecture',
    },
    // Add new pages here
  ],
};

The documentation site includes full-text search powered by [search library]. Search indexes are built automatically during deployment.

Styling

Custom Components

Available components in src/components/:

Usage Example

<Callout type="info">
  This is an important note!
</Callout>

<Step number={1}>
  First, do this...
</Step>

<Tabs>
  <Tab label="Docker">
    ```bash
    docker compose up
    ```
  </Tab>
  <Tab label="Kubernetes">
    ```bash
    kubectl apply -f manifests/
    ```
  </Tab>
</Tabs>

Deployment

GitHub Pages

Documentation is automatically deployed to GitHub Pages on every push to main:

  1. Push changes to main branch
  2. GitHub Actions builds the site
  3. Deployed to https://heretek.github.io/heretek-openclaw-docs

Manual Deployment

# Build
npm run build

# Preview locally
npm run preview

# Deploy (if you have write access)
npm run deploy

CI/CD

The documentation site uses GitHub Actions for continuous deployment:

name: Deploy Documentation

on:
  push:
    branches: [main]

jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
      - run: npm install
      - run: npm run build
      - uses: actions/deploy-pages@v4

Development Guidelines

Writing Style

Code Examples

Images and Diagrams

Testing

# Check links
npm run check:links

# Validate Markdown
npm run lint:markdown

# Type check
npm run typecheck

License

MIT

Support


🦞 The thought that never ends.