GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing okidoki.dev — Documentation Reference
On This Page
Documentation Reference1.1.35 Complete reference for OkiDoki documentation generator. Want to see how this official documentation site is built? Check out the complete source code. Commands
|
| Option | Short | Description | Default |
|---|---|---|---|
--output |
-o |
Output directory | (current directory) |
--config |
-c |
Path to create okidoki configuration file | "okidoki.yaml" |
--sidebars |
-b |
Path to create sidebars configuration file | "sidebars.yaml" |
--dev |
-d |
Create a package.json with development scripts | false |
--help |
Show help information | ||
--version |
Show version number |
Examples:
# Initialize in current directory
okidoki init
# Initialize in specific directory
okidoki init --output ./my-documentation
# Custom config file names
okidoki init -c ./config.yaml -b ./navigation.yaml
# Include development setup
okidoki init --dev
What it creates:
okidoki.yaml - Main configuration filesidebars.yaml - Navigation structuredocs/ directory with sample contentdocs/index.md - Homepage contentpackage.json - Development scripts (when using --dev)okidoki generateGenerate the static documentation site.
Usage:
okidoki generate [options]
CLI Options:
| Option | Short | Description | Default |
|---|---|---|---|
--source |
-s |
Source directory containing markdown files | "docs" |
--output |
-o |
Output directory for generated files | "dist" |
--config |
-c |
Path to okidoki configuration file | "okidoki.yaml" |
--sidebars |
-b |
Path to sidebars configuration file | "sidebars.yaml" |
--verbose |
-v |
Enable verbose logging | false |
--help |
Show help information | ||
--version |
Show version number |
Examples:
# Basic usage (uses defaults)
okidoki generate
# Custom directories
okidoki generate --source ./documentation --output ./website
# Custom config files
okidoki generate -c ./config/okidoki.yaml -b ./config/nav.yaml
# Enable verbose logging
okidoki generate -v
# Combine options
okidoki generate -s ./docs -o ./public -v
Output:
dist/ directory with generated HTML filessitemap.xml for SEO and search engine indexingDevelopment tip: For automatic rebuilding during development, use:
npx nodemon -w ./docs -w okidoki.yaml -w sidebars.yaml -e md,png,jpg,jpeg,gif,svg,webp,yaml,yml --exec "okidoki generate && npx serve dist"
okidoki openapiConvert OpenAPI specification to markdown documentation.
Usage:
okidoki openapi [options]
CLI Options:
| Option | Short | Description | Default |
|---|---|---|---|
--input |
-i |
Path to OpenAPI specification file (JSON or YAML) | (required) |
--output |
-o |
Output markdown file path | (auto-generated) |
--title |
-t |
Title for the generated documentation | (auto-generated) |
--description |
-d |
Description for the generated documentation | (auto-generated) |
--docs |
Target docs directory | "docs" |
|
--sidebars |
-b |
Path to sidebars configuration file | "sidebars.yaml" |
--config |
-c |
Path to okidoki configuration file | "okidoki.yaml" |
--help |
Show help information | ||
--version |
Show version number |
Examples:
# Convert OpenAPI spec to markdown
okidoki openapi -i api-spec.yaml
# Specify custom output file
okidoki openapi -i api-spec.json -o custom-api-docs.md
# Set custom title and description
okidoki openapi -i spec.yaml -t "My API Documentation" -d "Complete API reference"
# Custom docs directory and config files
okidoki openapi -i spec.yaml --docs documentation -c config.yaml -b nav.yaml
What it does:
Main configuration file for your documentation site.
Complete reference of all available configuration options:
| Setting | Type | Default | Description |
|---|---|---|---|
| Site Configuration | |||
site.title |
String | Required | Site title (browser title and header) |
site.description |
String | Required | Meta description for SEO |
site.url |
String | Optional | Full domain URL for sitemap generation |
site.logo |
String | Optional | Path to custom logo image |
site.favicon |
String | Optional | Path to custom favicon |
site.baseUrl |
String | "/" |
Base path for subdirectory hosting |
site.friendlyUrl |
Boolean | false |
Remove .html extensions from URLs |
site.language |
String | "en" |
Default language (ISO 639-1 code) |
site.theme.light |
String | "light" |
DaisyUI light theme name |
site.theme.dark |
String | "dark" |
DaisyUI dark theme name |
| Global Variables | |||
globals.* |
Any | Optional | Custom variables accessible in markdown |
| Search Configuration | |||
search.enabled |
Boolean | true |
Enable/disable search functionality |
search.maxResults |
Number | 10 |
Maximum search results to display |
search.minSearchLength |
Number | 2 |
Minimum characters to trigger search |
search.placeholder |
String | "Search..." |
Search input placeholder text |
| Build Configuration | |||
build.outputDir |
String | "dist" |
Output directory for generated files |
build.clean |
Boolean | true |
Clean output directory before build |
build.minify |
Boolean | true |
Minify HTML, CSS, and JS files |
Quick Example:
site:
title: "My Documentation"
description: "Complete guide and API reference"
url: "https://docs.example.com"
friendlyUrl: true
language: "en"
theme:
light: "lemonade"
dark: "coffee"
site:
title: "Site Title" # Appears in browser title and header
description: "Site Description" # Meta description for SEO
url: "https://okidoki.dev" # Full domain for absolute sitemap URLs
logo: "/path/to/logo.png" # Optional: Custom logo
favicon: "/path/to/favicon.ico" # Optional: Custom favicon
baseUrl: "/" # Optional: add path for subdirectory hosting
friendlyUrl: true # Optional: remove .html extensions from URLs
language: "en" # Optional: default language for all pages
theme:
light: "light" # DaisyUi light theme
dark: "dark" # DaisyUI dark theme
URL Configuration:
url: "https://example.com" - Full domain URL where your documentation is hostedhttps:// or http://)baseUrl for subdirectories)URL Examples:
# Root domain hosting, e.g. on GitHub pages with a custom domain setup
site:
url: "https://okidoki.dev"
# Subdomain hosting
site:
url: "https://docs.mysaas.io"
# GitHub Pages with subdirectory (use baseUrl too)
site:
url: "https://username.github.io"
baseUrl: "/repository-name/"
Sitemap Benefits:
BaseUrl Configuration:
baseUrl when hosting your documentation under a subdirectory (e.g., example.com/docs/)username.github.io/repository-name (use baseUrl: "/repository-name/")docs.example.com)/ when used (e.g., "/docs/", "/my-repo/")url for proper sitemap generationFriendlyUrl Configuration:
friendlyUrl: true - Removes .html extensions from all generated URLs and linksfriendlyUrl: false (default) - Keeps .html extensions in URLsreference.html becomes reference in URLsLanguage Configuration:
language: "en" - Sets the default language for all pages using ISO 639-1 language codeslanguage frontmatter setting<html lang="xx"> attribute site-wide"en" (English) if not specifiedCommon Language Codes:
"en" - English (default)"es" - Spanish (Español)"fr" - French (Français)"de" - German (Deutsch)"pt" - Portuguese (Português)"ja" - Japanese (日本語)"zh" - Chinese (中文)"ar" - Arabic (العربية)Example Configurations:
# English documentation (default)
site:
language: "en"
# Spanish documentation
site:
language: "es"
# Multilingual site with default language
site:
language: "en" # Default for most pages
# Individual pages can override with frontmatter:
# ---
# language: "es"
# ---
Benefits:
language frontmatter setting. See Page Language Configuration for details.site:
theme:
light: "fantasy" # Light theme name
dark: "forest" # Dark theme name
Available Themes:
Based on DaisyUI themes, OkiDoki supports all 35 themes:
All Available Themes:
light, dark, cupcake, bumblebee, emerald, corporate, synthwave, retro, cyberpunk, valentine, halloween, garden, forest, aqua, lofi, pastel, fantasy, wireframe, black, luxury, dracula, cmyk, autumn, business, acid, lemonade, night, coffee, winter, dim, nord, sunset, caramellatte, abyss, silkglobals:
version: "1.0.0"
api_url: "https://api.example.com"
support_email: "[email protected]"
Use in markdown with {{globals.version}}, {{globals.api_url}}, etc.
search:
enabled: true # Enable/disable search (default: true)
maxResults: 10 # Maximum number of search results (default: 10)
minSearchLength: 2 # Minimum characters to trigger search (default: 2)
placeholder: "Search documentation..." # Search input placeholder
build:
outputDir: "dist" # Output directory (default: "dist")
clean: true # Clean output directory before build (default: true)
minify: true # Minify HTML, CSS, and JS files (default: true)
Defines the navigation structure for your documentation.
menu:
- title: "Page Title"
document: "/path/to/page.md"
- title: "External Link"
url: "https://external.com"
- title: "Section"
items:
- title: "Nested Page"
document: "/nested/page.md"
footer:
- title: "Links"
items:
- label: "Home"
url: /index.md
- label: "GitHub"
url: "https://github.com/example/repo"
title - Display name in navigationdocument - Path to markdown file (relative to docs/)url - External URL (alternative to document)items - Array of nested menu itemsbadge - Optional badge configuration objectexclude_from_search - Boolean to exclude page content from search index (default: false)Add badges to menu items to highlight important sections or indicate status:
menu:
- title: "✨ Features"
document: "/features.md"
badge:
variant: "info"
text: "new"
- title: "API Reference"
document: "/api.md"
badge:
variant: "warning"
text: "beta"
- title: "Changelog"
document: "/changelog.md"
badge:
variant: "success"
text: "updated"
Badge Properties:
variant - Badge style: "info", "success", "warning", "error", or "outline"text - Badge text content (keep it short)menu:
- title: "Getting Started"
document: "/start.md"
badge:
variant: "info"
text: "start here"
- title: "API Reference"
items:
- title: "Authentication"
document: "/api/auth.md"
- title: "Users"
document: "/api/users.md"
badge:
variant: "warning"
text: "beta"
- title: "Posts"
document: "/api/posts.md"
- title: "Legal"
items:
- title: "Terms of Service"
document: "/legal/terms.md"
exclude_from_search: true # Don't include legal docs in search
- title: "Privacy Policy"
document: "/legal/privacy.md"
exclude_from_search: true
- title: "External Resources"
items:
- title: "GitHub"
url: "https://github.com/example/repo"
- title: "API Status"
url: "https://status.example.com"
Use exclude_from_search: true to exclude specific pages from the search index:
menu:
- title: "Important Documentation"
document: "/docs.md"
# This page will be searchable (default behavior)
- title: "Legal Notice"
document: "/legal.md"
exclude_from_search: true
# This page won't appear in search results
- title: "Archive"
items:
- title: "Old Version 1.0"
document: "/archive/v1.md"
exclude_from_search: true # Exclude deprecated content
- title: "Current Version 2.0"
document: "/archive/v2.md"
# This will be included in search
Common use cases for excluding from search:
Add footer links that appear at the bottom of all pages:
footer:
- title: "Resources"
items:
- label: "Quick Start"
url: /start.md
- label: "Documentation"
url: reference.md
- label: "Examples"
url: markdown-examples.md
- title: "Open Source"
items:
- label: "GitHub Repository"
url: "https://github.com/jbeejones/okidoki"
- label: "Report Issues"
url: "https://github.com/jbeejones/okidoki/issues"
- label: "Contribute"
url: "https://github.com/jbeejones/okidoki/blob/main/CONTRIBUTING.md"
Footer Properties:
title - Section header in footeritems - Array of footer linkslabel - Display text for the linkurl - Internal document path (relative to docs/) or external URLFooter Notes:
/ for root-relative pathshttps://hideFooter: true is setYou can customize individual page layouts by adding configuration options to menu items:
menu:
- title: "Landing Page"
document: "/landing.md"
hideMenu: true # Hide navigation sidebar
hideBreadcrumbs: true # Hide breadcrumb navigation
hideFooter: true # Hide page footer
fullWidth: true # Use full page width (no sidebar padding)
- title: "Regular Page"
document: "/normal.md"
# Uses default layout with all elements visible
Page Layout Properties:
hideMenu: true - Removes the navigation sidebar for a clean layouthideBreadcrumbs: true - Hides breadcrumb navigation at the top of the pagehideFooter: true - Removes the footer section from the pagefullWidth: true - Expands content to use the full page width (useful with hidden sidebar)These options are perfect for landing pages, special sections, or any pages where you want a cleaner, more focused layout.
You can add links to the top navigation bar using the navbar configuration:
# Main sidebar menu
menu:
- title: "Getting Started"
document: "/start.md"
# ... other menu items
# Top navigation bar items
navbar:
- title: "GitHub"
url: "https://github.com/okidoki-docs/okidoki"
- title: "Help"
document: "/help.md"
- title: "API Status"
url: "https://status.example.com"
target: "_blank" # Optional: open in new tab
Navbar Item Properties:
title - Display text for the navigation linkdocument - Path to internal markdown file (relative to docs/)url - External URL (alternative to document)target - Optional link target (e.g., "_blank" for new tab)Navbar items appear in the top navigation bar and are perfect for external links, help sections, or important internal pages that need quick access.
Set the language for individual pages using the language frontmatter setting. This changes the HTML lang attribute for that specific page, which improves accessibility, SEO, and browser behavior.
---
title: Prueba de Idioma Español
description: Esta página demuestra el soporte para el idioma español en OkiDoki
language: es
---
Language Configuration:
language: "xx" - Sets the language using ISO 639-1 language codes<html lang="xx"> attribute for the pageCommon Language Codes:
en - Englishes - Spanish (Español)fr - French (Français)de - German (Deutsch)pt - Portuguese (Português)ja - Japanese (日本語)zh - Chinese (中文)ar - Arabic (العربية)ru - Russian (Русский)it - Italian (Italiano)Use Cases:
1. Multilingual Documentation:
---
title: Documentation en Français
description: Guide complet en français
language: fr
---
2. Markdown Pages with Different Languages:
---
title: Bienvenido
description: Página de inicio en español
language: es
---
# ¡Bienvenido!
Esta es una página personalizada en español.
3. Language-Specific Sections:
# Create separate folders for different languages
docs/
├── en/
│ └── guide.md # language: en
├── es/
│ └── guide.md # language: es
└── fr/
└── guide.md # language: fr
Benefits:
OkiDoki supports all standard markdown syntax as defined in the CommonMark specification. This section covers the fundamental markdown elements you can use in your documentation.
Create hierarchical headings using hash symbols.
# H1 - Main Title
## H2 - Section Title
### H3 - Subsection
#### H4 - Sub-subsection
##### H5 - Minor Heading
###### H6 - Smallest Heading
Best Practices:
Apply emphasis and styling to your text.
**Bold text** or __bold text__
*Italic text* or _italic text_
***Bold and italic*** or ___bold and italic___
~~Strikethrough text~~
`Inline code`
Formatting Options:
**text** or __text__*text* or _text_***text*** or ___text___~~text~~`code`Create ordered and unordered lists with nesting support.
Unordered Lists:
- First item
- Second item
- Nested item
- Another nested item
- Third item
Ordered Lists:
1. First step
2. Second step
1. Nested step
2. Another nested step
3. Third step
List Best Practices:
Create hyperlinks and embed images in your documentation.
Basic Links:
[Link text](https://example.com)
[Internal link](reference.md)
[Link with title](https://example.com "Example Website")
Images:


[](https://example.com)
Link Types:
https://example.comreference.mdpage.md#section syntax=widthxheightCreate structured data tables with alignment options.
| Column 1 | Column 2 | Column 3 |
|:---------|:--------:|---------:|
| Left | Center | Right |
| Aligned | Aligned | Aligned |
Table Alignment:
:--- - Left aligned (default):---: - Center aligned---: - Right alignedTable Features:
<br> tags for line breaksHighlight important information, quotes, or notes.
> This is a blockquote. It can be used for highlighting important information,
> quotes, or notes.
> **Tip:** You can also use blockquotes for tips and warnings.
Blockquote Uses:
Create visual separators between sections.
---
***
___
All three syntaxes (---, ***, ___) create horizontal rules. Use them sparingly to separate major sections.
Include code snippets with syntax highlighting.
Inline Code:
Use the `console.log()` function to output messages.
Code Blocks:
```javascript
function greet(name) {
console.log(`Hello, ${name}!`);
}
```
Supported Languages: javascript, typescript, python, java, php, go, rust, c, cpp, html, css, yaml, json, bash, shell, sql, and many more.
Highlighting Lines and Adding Titles:
You can highlight specific lines in code blocks and add descriptive titles:
```python{3-4, 6} title="mylib.py"
def calculate_sum(a, b):
# These three lines are highlighted
result = a + b
return result
print(calculate_sum(5, 3))
```
Line Highlighting Syntax:
{line_numbers} after the language identifier{3} highlights line 3{3, 5, 7} highlights lines 3, 5, and 7{3-6} highlights lines 3 through 6{1, 3-5, 8} highlights line 1, lines 3-5, and line 8Title Syntax:
title="filename" after line numbers (or directly after language)title="config.yaml"Use backslashes to escape special markdown characters:
\*This text won't be italic\*
\`This won't be code\`
\# This won't be a heading
\[This won't be a link\]
Control line breaks in your content:
This is a paragraph with a line break.
This line appears on a new line.
This is a new paragraph.
<br> in tables for line breaks within cellsMarkdown tables support various formatting options and content types:
| Feature | Status | Priority | Description | Example |
|:----------------------------------|:------:|:--------:|:-------------------------------|:----------------------------------|
| Headers | YES | High | H1-H6 support | `# Title` |
| **Bold Text** | YES | Medium | Emphasis in cells | **Important** |
| *Italic Text* | YES | Low | Styling support | *emphasis* |
| `Code Spans` | YES | High | Inline code | `console.log()` |
| [Links](reference.md) | YES | High | Internal & external | [GitHub](https://github.com) |
| Line breaks<br>Multiple lines | YES | Medium | HTML `<br>` tags | Content<br>on new line |
| Long content that wraps naturally | YES | Low | Automatic wrapping | Text wraps within cell boundaries |
| Numbers & Calculations | YES | Medium | Numeric data | 1,234.56 |
| Emojis & Unicode | YES | Low | Special characters | Rocket star plus |
| Empty cells | | | Leave blank | |
Table Alignment Options:
:--- - Left aligned (default):---: - Center aligned---: - Right alignedUse global variables defined in okidoki.yaml:
Current version: {{version}}
API endpoint: {{{api_url}}}
Contact: {{{support_email}}}
You can also define page-specific variables in the frontmatter section at the top of each markdown file:
---
author: Jane Doe
---
Some markdown content here written by {{author}}
Control the page navigation (table of contents) that appears on individual pages using the pagenav frontmatter setting:
---
title: My Page
pagenav: true # Default: show all heading levels (H1-H6)
---
# OR specify a custom depth:
---
title: My Page
pagenav:
levels: 3 # Include headings from H1 to H3 only
---
Configuration Options:
pagenav: true - Default behavior: Shows all heading levels (H1-H6) in page navigationpagenav: false - Disables page navigation entirelypagenav.levels: 1-6 - Limits navigation to specific heading depth
1 - Only H1 headings2 - H1 and H2 headings3 - H1, H2, and H3 headings4 - H1 through H4 headingsUsage Examples:
# Default - show all headings (most common)
---
title: Documentation Page
pagenav: true
---
# Limit navigation depth for complex pages
---
title: API Reference
pagenav:
levels: 4
---
# Simple pages with minimal structure
---
title: OpenAPI Generated Docs
pagenav:
levels: 1
---
# Disable navigation completely
---
title: Landing Page
pagenav: false
---
When to Use Different Settings:
pagenav: true (default): Most documentation pages - let readers navigate all headingslevels: 1-2: Simple pages, landing pages, or OpenAPI generated docs with minimal structurelevels: 3-4: Complex reference pages where deep navigation might be overwhelmingpagenav: false: Landing pages, custom HTML pages, or pages without meaningful headingsCreate styled message callouts using Handlebars alert helpers:
{{alert "This is an info callout." "info"}}
{{alert "This is a success callout." "success"}}
{{alert "This is a warning callout." "warning"}}
{{alert "This is a danger callout." "error"}}
{{alert "This is a neutral callout."}}
For alerts with markdown content, use the block syntax:
{{#alert}}
Default neutral alert with **markdown** support
{{/alert}}
{{#alert "info"}}
Information alert with [links](https://example.com) and `code`
{{/alert}}
Use Handlebars badge helpers for status indicators, versions, and metadata:
{{badge "Default Badge"}}
{{badge "Primary" "primary"}}
{{badge "Secondary" "secondary"}}
{{badge "Accent" "accent"}}
{{badge "Info" "info"}}
{{badge "Success" "success"}}
{{badge "Warning" "warning"}}
{{badge "Error" "error"}}
You can use badges inline like this {{badge "Status: Active" "success"}} within your content.
{{badge "v2.1.0" "info"}}{{badge "Stable" "success"}}{{badge "GET" "primary"}}{{badge "Beta" "warning"}}Sidebar badges are configured in sidebars.yaml:
menu:
- title: "Getting Started"
document: /start.md
badge:
variant: "info"
text: "new feature"
Embed YouTube videos directly in your documentation using the built-in YouTube helper:
{{youtube "1XJ8bN7Cn9w"}}
{{youtube "1XJ8bN7Cn9w" width="800" height="450" start="120"}}
This example:
1XJ8bN7Cn9wwidth="100%" for responsive videos that fill their containerhttps://www.youtube.com/watch?v=1XJ8bN7Cn9w → 1XJ8bN7Cn9wCreate interactive tabbed content using Handlebars tab helpers. Perfect for organizing related content, showing code examples in multiple languages, or displaying platform-specific instructions.
{{#tabs}}
{{#tab title="JavaScript"}}
```javascript
const message = "Hello from JavaScript!";
console.log(message);
```
{{/tab}}
{{#tab title="Python"}}
```python
message = "Hello from Python!"
print(message)
```
{{/tab}}
{{/tabs}}
Tabs can contain any markdown content, not just code blocks:
{{#tabs}}
{{#tab title="Overview"}}
Here's some regular markdown content in a tab.
- Feature A: Does something cool
- Feature B: Does something else
- Feature C: Does something amazing
> **Note**: This tab contains mixed content!
{{/tab}}
{{#tab title="Configuration"}}
```yaml
api:
baseUrl: "https://api.example.com"
timeout: 30000
```
{{/tab}}
{{/tabs}}
OkiDoki includes several powerful markdown plugins that extend standard markdown functionality with enhanced features for emojis, mathematical expressions, diagrams, and automatic table of contents generation.
markdown-it-emoji)Add emojis to your documentation using standard emoji shortcodes:
:rocket: Launch your documentation
:heart: Made with love
:warning: Important notice
:check: Task completed
:star: Featured content
Features:
:emoji_name:)Check out this useful link to all emojicons
markdown-it-mathjax3)Render beautiful mathematical expressions using MathJax3. Supports both inline and block math expressions:
Inline Math:
The quadratic formula is $x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$ and it's very useful.
Block Math:
$
\begin{align}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} &= \frac{4\pi}{c}\vec{\mathbf{j}} \\
\nabla \cdot \vec{\mathbf{E}} &= 4 \pi \rho \\
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} &= \vec{\mathbf{0}} \\
\nabla \cdot \vec{\mathbf{B}} &= 0
\end{align}
$
Features:
$...$ delimiters$...$ delimitersFor more information about MathJax3 syntax and features, visit the MathJax documentation.
markdown-it-mermaid)Create beautiful diagrams and flowcharts using Mermaid syntax. Perfect for visualizing processes, architectures, and relationships:
Flowchart:
```mermaid
graph TD
A[Start] --> B{Is it working?}
B -->|Yes| C[Great!]
B -->|No| D[Debug]
D --> E[Fix issue]
E --> B
C --> F[End]
```
Sequence Diagram:
```mermaid
sequenceDiagram
participant User
participant API
participant Database
User->>API: GET /users
API->>Database: SELECT * FROM users
Database-->>API: Return user data
API-->>User: JSON response
```
Supported Diagram Types:
graph, flowchart)sequenceDiagram)classDiagram)stateDiagram)erDiagram)journey)gitgraph)pie)gantt)timeline)Features:
For more information about Mermaid diagrams and syntax, visit the Mermaid documentation.
markdown-it-table-of-contents)Generate automatic table of contents using the [TOC] placeholder:
[TOC]
# Introduction
This is the introduction section.
## Getting Started
Here's how to get started.
### Prerequisites
What you need before starting.
## Advanced Topics
More complex topics.
Features:
docs/
├── index.md # Homepage
├── start.md # Getting started
├── api/ # API documentation
│ ├── index.md
│ ├── auth.md
│ └── endpoints.md
├── guides/ # How-to guides
│ ├── deployment.md
│ └── configuration.md
├── reference/ # Reference material
│ └── cli.md
└── assets/ # Images, files
└── images/
└── screenshot.png
getting-started.mdindex.md for section overviewsPlace images in docs/assets/images/ or any subdirectory:


docs/assets/files/docs/assets/css/docs/assets/js/OkiDoki provides two methods for creating custom pages with complete design freedom. Both approaches allow you to override the default page layout and styling.
The simplest way to create custom pages is by using frontmatter configuration in your markdown files. This method allows you to embed custom HTML directly in markdown files while controlling layout options.
See a complete example in Custom Page Example.
See the source code for the Custom Page Example.
Setup:
Add configuration to the frontmatter of any markdown file:
---
description: Your documentation is now ready
handlebars: true
hideMenu: true # Hide navigation sidebar
hideBreadcrumbs: true # Hide breadcrumb navigation
hideFooter: true # Hide page footer
customHTML: true # Allow custom HTML without prose constraints
---
<p>Your HTML goes here</p>
Frontmatter Options:
customHTML: true - Removes prose styling constraints, allows full HTML flexibilityhandlebars: true - Enables Handlebars template processing for variables and helpershideMenu: true - Removes the navigation sidebarhideBreadcrumbs: true - Hides breadcrumb navigationhideFooter: true - Removes the page footerBenefits:
Design with DaisyUI and TailwindCSS:
OkiDoki includes DaisyUI and TailwindCSS by default, giving you access to hundreds of utility classes and beautiful component styles. This makes it incredibly easy to create any design that fits your needs.
Available Design Systems:
Quick Example: (link to example page)
---
customHTML: true
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Product - Documentation</title>
</head>
<body class="bg-gradient-to-br from-primary to-secondary min-h-screen flex items-center justify-center">
<div class="bg-base-100 rounded-lg shadow-2xl p-8 max-w-lg mx-4 text-center">
<header class="mb-6">
<h1 class="text-4xl font-bold text-base-content mb-2">Welcome to My Product</h1>
<p class="text-base-content/70 text-lg">The best solution for your needs</p>
</header>
<main>
<div class="space-y-4">
<a href="../start" class="block bg-primary hover:bg-primary/90 text-primary-content font-semibold py-3 px-6 rounded-lg transition-colors duration-200">
Get Started
</a>
<a href="../reference" class="block bg-base-200 hover:bg-base-300 text-base-content font-semibold py-3 px-6 rounded-lg transition-colors duration-200">
API Reference
</a>
</div>
</main>
</div>
</body>
</html>
Visit TailwindCSS Documentation and DaisyUI Components for complete reference guides.
For complete control over the home page with separate HTML files, create a root-level assets/ folder with custom resources.
See a complete example in Custom Plain HTML Example.
Setup:
assets/ folder in your project root (same level as okidoki.yaml)index.html file with your custom home page content, or any file you want to overrideExample Structure:
project-root/
├── okidoki.yaml
├── sidebars.yaml
├── docs/ # Regular documentation
│ └── start.md
└── assets/ # Custom home page assets
├── index.html # Custom home page
├── styles.css # Custom styles
├── custom.js # Custom scripts
└── images/ # Home page images
└── hero.png
How It Works:
index.html instead of the generated documentation home page./docs/start.html)assets/ folder are copied directly to the output directoryUse Cases:
This is exactly how this site, the OkiDoki official website, creates its custom home page while maintaining the documentation functionality.
Use Method 1 (Frontmatter Configuration) when:
Use Method 2 (Custom Assets Folder) when:
Generated files in dist/ directory include HTML, CSS, JS, search index, and sitemap.xml. These static files can be deployed to:
npx serve dist for testing