Official documentation site for Heretek OpenClaw, built with Next.js and deployed to GitHub Pages.
This repository contains the documentation site for Heretek OpenClaw, including:
git clone https://github.com/heretek/heretek-openclaw-docs.git
cd heretek-openclaw-docs
npm install
# 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
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
| 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 |
Documentation uses Markdown with frontmatter:
---
title: Gateway Architecture
description: Overview of OpenClaw Gateway architecture
---
# Gateway Architecture
Content goes here...
.mdx file in the appropriate content/ subdirectorysrc/config/navigation.ts---
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.
Available components in src/components/:
<Callout> - Highlighted information boxes<CodeBlock> - Syntax-highlighted code<Step> - Numbered step containers<Tabs> - Tabbed content sections<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>
Documentation is automatically deployed to GitHub Pages on every push to main:
main branchhttps://heretek.github.io/heretek-openclaw-docs# Build
npm run build
# Preview locally
npm run preview
# Deploy (if you have write access)
npm run deploy
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
public/images/# Check links
npm run check:links
# Validate Markdown
npm run lint:markdown
# Type check
npm run typecheck
MIT
🦞 The thought that never ends.