This directory contains the documentation site for OSO Kafka Backup, built with Docusaurus.
- Node.js 18+
- npm or yarn
# Install dependencies
npm install
# Start development server
npm run startThe site runs at http://localhost:3000 with hot reloading enabled.
# Build for production
npm run build
# Serve the built site locally
npm run serveOutput is generated in the build/ directory.
docs/
├── docs/ # Documentation markdown files
│ ├── intro.md # Homepage
│ ├── getting-started/ # Getting started guides
│ ├── deployment/ # Deployment guides
│ ├── guides/ # How-to guides
│ ├── reference/ # API and CLI reference
│ ├── operator/ # Kubernetes operator docs
│ ├── enterprise/ # Enterprise features
│ ├── architecture/ # Architecture deep-dives
│ ├── troubleshooting/ # Troubleshooting guides
│ └── examples/ # Example configurations
├── static/ # Static assets (images, diagrams)
├── src/
│ └── css/ # Custom CSS
├── docusaurus.config.js # Docusaurus configuration
├── sidebars.js # Sidebar navigation
└── package.json # Dependencies
- Create a new
.mdfile in the appropriate directory - Add frontmatter:
--- title: "Page Title" description: "Short description for SEO" sidebar_position: 1 ---
- Add the page to
sidebars.js - Run
npm run startto verify
- Use action-oriented language ("Create", "Configure", not "It is possible to...")
- Include copy-paste ready code examples
- Always specify language in code blocks (
bash,yaml, etc.) - Use relative links for internal documentation
- Add SEO-friendly titles and descriptions
Documentation is automatically deployed via GitHub Actions on push to main.
For manual deployment:
npm run build
npm run deploy