Quick Start Guide

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! πŸš€

Installation

Install OkiDoki globally using npm:

npm install -g okidoki

Quick Setup

  1. Create a new documentation project:

    mkdir mydocs && cd mydocs
    
  2. Initialize your project:

    okidoki init
    

    This creates the basic structure with configuration files.

  3. Generate your documentation:

    okidoki generate
    
  4. Serve your docs locally:

    npx serve dist
    

    Your documentation will be available at http://localhost:3000

    You should see this page in your browser: okidoki start page

Project Structure

After running okidoki init, you’ll have:

mydocs/
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ index.md        # Beautiful homepage
β”‚   β”œβ”€β”€ start.md        # This getting started guide
β”‚   β”œβ”€β”€ help.md         # Help and support page
β”‚   └── test.md         # Sample content page
β”œβ”€β”€ okidoki.yaml        # Main configuration
β”œβ”€β”€ sidebars.yaml       # Navigation structure
└── dist/               # Generated site (after build)

Basic Configuration

okidoki.yaml

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

Writing Your First Page

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.

Next Steps

Key Features

  • Markdown First: Write in standard markdown with enhanced plugins for emojis, math, diagrams, and TOC
  • Fast Search: Full-text search across all documentation
  • Clean Themes: Beautiful, responsive themes out of the box
  • Quick Build: Generate docs in under 1 second
  • Small Footprint: Generated sites are ~50KB