Transform raw technical content into beautiful, learnable Docusaurus sites
# Template includes:
# - Docusaurus 3.x with TypeScript
# - Custom red theme (custom.css)
# - React diagram components
# - Interactive code (Python via Pyodide, JS via live-codeblock)
# - GitHub Actions for deploymentEdit docs/docusaurus.config.ts:
const config = {
title: 'YOUR_PROJECT_NAME', // Change this
url: 'https://YOUR_USERNAME.github.io',
baseUrl: '/YOUR_REPO_NAME/',
organizationName: 'YOUR_USERNAME',
projectName: 'YOUR_REPO_NAME',
};- Put raw markdown files in
raw/folder - Ask Claude to transform them following this guide
- Output goes to
docs/docs/
git add . && git commit -m "Add content" && git push
# GitHub Actions auto-deploys to Pages- No footnotes — Keep all content inline, don't use
[^1]style - No Mermaid — Use React diagram components instead
- Inline explanations — Put context directly where needed
---
sidebar_position: 1
title: "Chapter Title"
description: "Brief description for SEO"
slug: /optional-custom-url
---## Table of Contents
1. [Introduction](#1-introduction)
2. [Main Topic](#2-main-topic)
- 2.1. [Subtopic](#21-subtopic)
3. [Summary](#3-summary)| Level | Format | Example |
|---|---|---|
| Main | ## 1. |
## 1. Introduction |
| Sub | ### 1.1. |
### 1.1. Subtopic |
| Sub-sub | #### 1.1.1. |
#### 1.1.1. Detail |
---
**Previous:** [Link] | **Next:** [Link]Always introduce concepts with:
**In plain English:** [Analogy anyone can understand]
**In technical terms:** [Precise definition]
**Why it matters:** [Real-world benefit]> **Insight**
>
> [Key knowledge connecting concepts to broader patterns]> **Warning**
>
> [Critical information about potential issues]Simple concept -> Intermediate application -> Advanced implementation
| Category | Emojis |
|---|---|
| Sections | Goals · Lists · Performance · Implementation · Pipelines |
| Callouts | Insight · Warning · Note · Learning · Security |
| Content | Code · Systems · Network · Performance · Metrics |
import {
Box, Arrow, Row, Column, Group,
DiagramContainer, ProcessFlow, TreeDiagram,
CardGrid, StackDiagram, ComparisonTable,
colors
} from '@site/src/components/diagrams';colors.blue // #3b82f6
colors.purple // #8b5cf6
colors.green // #10b981
colors.orange // #f59e0b
colors.red // #ef4444
colors.slate // #64748b
colors.cyan // #06b6d4
colors.pink // #ec4899<Box color={colors.blue} variant="filled" size="md" icon="icon">
Label
</Box>
// variant: 'filled' | 'outlined' | 'subtle'
// size: 'sm' | 'md' | 'lg'<Arrow direction="right" label="connects to" />
// direction: 'right' | 'down' | 'left' | 'up'<Row gap="md" align="center" wrap={true}>{children}</Row>
<Column gap="md" align="center">{children}</Column>
// gap: 'sm' | 'md' | 'lg'<Group title="Section" color={colors.blue} direction="column">
{children}
</Group><DiagramContainer title="Diagram Title">
{children}
</DiagramContainer><ProcessFlow
direction="horizontal"
steps={[
{ title: "Step 1", description: "Details", icon: "1", color: colors.blue },
{ title: "Step 2", description: "Details", icon: "2", color: colors.green }
]}
/><TreeDiagram
root={{
label: "Root",
color: colors.blue,
children: [
{ label: "Child 1", color: colors.purple },
{ label: "Child 2", color: colors.green }
]
}}
/><CardGrid
columns={3}
cards={[
{ title: "Card", icon: "icon", color: colors.blue, items: ["Item 1"] }
]}
/><StackDiagram
title="Layers"
layers={[
{ label: "Top", color: colors.blue, items: ["A", "B"] },
{ label: "Bottom", color: colors.green, items: ["C"] }
]}
/><ComparisonTable
beforeTitle="Without"
afterTitle="With"
beforeColor={colors.red}
afterColor={colors.green}
items={[
{ label: "Speed", before: "Slow", after: "Fast" }
]}
/><DiagramContainer title="System Flow">
<Row gap="md">
<Box color={colors.blue} icon="icon">Input</Box>
<Arrow direction="right" />
<Box color={colors.purple} icon="icon">Process</Box>
<Arrow direction="right" />
<Box color={colors.green} icon="icon">Output</Box>
</Row>
</DiagramContainer>import PythonRunner from '@site/src/components/PythonRunner';
<PythonRunner
code={`print("Hello from Python!")`}
title="Python Example"
/>import CodeRunner from '@site/src/components/CodeRunner';
<CodeRunner
language="cpp" // or: go, rust, java, csharp, ruby, php, etc.
title="C++ Example"
code={`#include <iostream>
int main() {
std::cout << "Hello!" << std::endl;
return 0;
}`}
/>Supported languages: python, cpp, c, java, javascript, typescript, go, rust, ruby, php, csharp, kotlin, swift, bash, sql
Note: Python runs locally via Pyodide (fast, no network). Other languages use the free public Judge0 CE API.
```jsx live
function Demo() {
return <button onClick={() => alert('Clicked!')}>Click me</button>;
}
```| Token | Light | Dark |
|---|---|---|
| Primary | #cc0000 |
#ff4444 |
| Primary Dark | #b80000 |
#ff2b2b |
| Primary Light | #e00000 |
#ff6b6b |
| Element | Font |
|---|---|
| Headings | Outfit |
| Body | Outfit |
| Code | JetBrains Mono |
- Numbered TOC with working anchor links
- Consistent header numbering (1, 1.1, 1.2)
- Previous/Next navigation links
- Frontmatter with title, description, sidebar_position
- Start with analogies ("In plain English")
- Use progressive examples (simple to advanced)
- Include insight boxes for key concepts
- Add visual diagrams using React components
- All code examples tested
- React diagrams for all visual flows (no Mermaid)
- No footnotes — keep content inline
- Dark mode works correctly
---
sidebar_position: 2
title: "Chapter X: Topic"
description: "Description here"
---
import { Row, Box, Arrow, DiagramContainer, colors } from '@site/src/components/diagrams';
# Chapter X: Topic
> **"Quote"**
>
> — Attribution
---
## Table of Contents
1. [Introduction](#1-introduction)
2. [Main Section](#2-main-section)
3. [Summary](#3-summary)
---
## 1. Introduction
**In plain English:** [Simple explanation]
**In technical terms:** [Technical definition]
**Why it matters:** [Real-world benefit]
---
## 2. Main Section
<DiagramContainer title="Visual">
<Row gap="md">
<Box color={colors.blue}>A</Box>
<Arrow direction="right" />
<Box color={colors.green}>B</Box>
</Row>
</DiagramContainer>
> **Insight**
>
> Key takeaway here.
---
## 3. Summary
### Key Takeaways
1. **First point** — Explanation
2. **Second point** — Explanation
---
**Previous:** [Prev Chapter](./prev) | **Next:** [Next Chapter](./next)Transform complex technical content into learnable knowledge