Welcome to OkiDoki!
Create beautiful documentation sites in seconds with this modern, open source documentation generator.
Ready to get started? Letβs create your documentation site in under 30 seconds! π
Install OkiDoki globally using npm:
npm install -g okidoki
Create a new documentation project:
mkdir mydocs && cd mydocs
Initialize your project:
okidoki init
This creates the basic structure with configuration files.
Generate your documentation:
okidoki generate
Serve your docs locally:
npx serve dist
Your documentation will be available at http://localhost:3000
After running okidoki init
, youβll have:
mydocs/
βββ okidoki.yaml # Main configuration
βββ sidebars.yaml # Navigation structure
βββ docs/ # Your markdown files
β βββ index.md # Homepage content
βββ dist/ # Generated site (includes sitemap.xml)
site:
title: "My Documentation"
description: "Documentation for my project"
menu:
- title: Getting Started
document: /start.md
- title: API Reference
document: /api.md
- title: Examples
document: /examples.md
Create a new markdown file start.md
in the docs/
directory:
# My First Page
This is my first documentation page with **bold text** and `code`.
## Code Example
```javascript
function hello() {
console.log("Hello, OkiDoki!");
}
The run the okidoki generate
command again and refresh your browser to see the updated documentation site.