A ready-to-use Docusaurus template for transforming technical content into beautiful, learnable documentation sites.
- Red Theme — Professional color scheme with dark mode
- React Diagram Components — Box, Arrow, ProcessFlow, TreeDiagram, CardGrid, and more
- Interactive Code — Run Python (Pyodide) and JavaScript in the browser
- GitHub Pages Ready — Auto-deploys via GitHub Actions
- Pedagogical Structure — Built-in teaching methodology guidelines
Click "Use this template" on GitHub, or:
gh repo create my-docs --template YOUR_USERNAME/docs-template --public --clone
cd my-docsEdit docs/docusaurus.config.ts:
const PROJECT_NAME = 'My Guide'; // Your project name
const GITHUB_USERNAME = 'your-username'; // Your GitHub username
const REPO_NAME = 'my-docs'; // Your repo name- Put raw markdown files in
raw/folder - Transform them following
CLAUDE.mdguidelines - Output to
docs/docs/
cd docs && npm install && npm run build
git add . && git commit -m "Add content" && git pushEnable GitHub Pages: Settings → Pages → Source: GitHub Actions
├── CLAUDE.md # Content transformation guidelines
├── raw/ # Put raw markdown here
├── docs/ # Docusaurus project
│ ├── docs/ # Transformed content goes here
│ ├── src/
│ │ ├── components/diagrams/ # React diagram components
│ │ └── css/custom.css # Custom theme
│ ├── static/img/ # Images and favicon
│ ├── docusaurus.config.ts
│ └── sidebars.ts
└── .github/workflows/ # Auto-deployment
import { Row, Box, Arrow, colors } from '@site/src/components/diagrams';
<Row gap="md">
<Box color={colors.blue}>Input</Box>
<Arrow direction="right" />
<Box color={colors.green}>Output</Box>
</Row>See CLAUDE.md for full component documentation.
Python (works out of box):
import PythonRunner from '@site/src/components/PythonRunner';
<PythonRunner code={`print("Hello!")`} title="Example" />C++, Go, Rust, Java, etc:
import CodeRunner from '@site/src/components/CodeRunner';
<CodeRunner language="cpp" code={`#include <iostream>
int main() { std::cout << "Hello!"; }`} />JavaScript (live codeblock):
```jsx live
function Demo() { return <button>Click</button>; }
```Supported: python, cpp, c, go, rust, java, csharp, ruby, php, kotlin, swift, bash, sql
Follow the CLAUDE.md file for:
- Three-part explanations (plain English → technical → why it matters)
- Numbered TOC and header structure
- Insight and warning boxes
- No footnotes, no Mermaid
MIT