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 — OkiDoki
Help & TroubleshootingGet help with common issues and questions about OkiDoki. Quick SolutionsInstallation IssuesProblem:
Problem: “okidoki command not found” after installation
Build IssuesProblem:
Problem: Generated site has broken links
Problem: Build is slow or hangs
CLI ReferenceCommand:
|
| 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 (nodemon, concurrently) | false |
--help |
Show help information | ||
--version |
Show version number |
# Initialize in current directory
okidoki init
# Initialize in a specific directory
okidoki init --output ./my-docs
# Create with custom config file names
okidoki init --config ./config.yaml --sidebars ./navigation.yaml
# Include development setup with package.json
okidoki init --dev
# Initialize with all options
okidoki init -o ./documentation -c ./my-config.yaml -b ./my-sidebars.yaml -d
The init command creates:
okidoki.yaml - Main configuration filesidebars.yaml - Navigation structure filedocs/ directory with sample markdown filespackage.json with development scripts (when using --dev)okidoki generateGenerate documentation from markdown files. This command automatically creates:
sitemap.xml for SEO and search engine indexingOptions:
| Option | Short | Description | Default |
|---|---|---|---|
--source |
-s |
Source directory containing markdown files | "docs" |
--output |
-o |
Output directory for generated files | (auto-generated) |
--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 |
# Basic usage (uses default settings)
okidoki generate
# Specify custom directories
okidoki generate --source ./documentation --output ./website
# Use custom configuration files
okidoki generate --config ./config/okidoki.yaml --sidebars ./config/nav.yaml
# Enable verbose logging for troubleshooting
okidoki generate -v
# Combine multiple options
okidoki generate -s ./docs -o ./public -c ./my-config.yaml -v
okidoki openapiConvert OpenAPI specification files to structured markdown documentation. This command automatically:
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 |
# Convert OpenAPI spec to markdown (basic usage)
okidoki openapi -i api-spec.yaml
# Specify custom output file and title
okidoki openapi -i api-spec.json -o my-api-docs.md -t "My API Reference"
# Full customization with description
okidoki openapi -i openapi.yaml -o api-reference.md -t "Complete API Guide" -d "Full documentation for our REST API"
# Custom docs directory and config files
okidoki openapi -i spec.yaml --docs documentation -c config/okidoki.yaml -b config/nav.yaml
Q: What file formats does OkiDoki support? A: OkiDoki primarily works with Markdown (.md) files. Images (PNG, JPG, GIF, SVG) and other assets are supported in the docs directory.
Q: Can I use custom CSS or JavaScript? A: Currently, OkiDoki uses built-in themes. Custom styling options may be added in future versions.
Q: How do I change the theme?
A: Edit the theme section in your okidoki.yaml file:
site:
theme:
light: "fantasy"
dark: "forest"
Q: Can I have multiple documentation sites?
A: Yes! Each site needs its own directory with separate okidoki.yaml and sidebars.yaml files.
Q: How do I add a favicon?
A: Add your favicon file to the docs directory and reference it in okidoki.yaml:
site:
favicon: "favicon.ico"
Q: How do I organize my documentation into sections?
A: Use the hierarchical structure in sidebars.yaml:
menu:
- title: "Getting Started"
items:
- title: "Installation"
document: "/install.md"
- title: "Quick Start"
document: "/quickstart.md"
Q: Can I link to external websites?
A: Yes! Use the url property instead of document:
menu:
- title: "GitHub Repository"
url: "https://github.com/example/repo"
Q: How do I use global variables?
A: Define them in okidoki.yaml and use in markdown:
globals:
version: "1.0.0"
api_url: "https://api.example.com"
Then in markdown: Current version: 1.1.35
Q: How do I add syntax highlighting to code blocks? A: Specify the language after the opening backticks:
```javascript
function hello() {
console.log("Hello, world!");
}
```
Q: Can I include HTML in my markdown? A: Yes, standard HTML tags work within markdown files.
Q: How do I create tables? A: Use standard markdown table syntax:
| Header 1 | Header 2 |
|----------|----------|
| Cell 1 | Cell 2 |
Q: How do I add badges to my documentation? A: Use the Handlebars badge helper:
{{badge "My Badge Text" "primary"}}
Or inline: Some text {{badge "Active" "success"}} more text
Error: Configuration file has syntax errors Solutions:
Error: Referenced markdown file doesn’t exist Solutions:
sidebars.yamlError: Can’t write to output directory Solutions:
ls -la dist/okidoki.yamlError: Specified theme doesn’t exist Solutions:
okidoki.yamlfantasy (light) or forest (dark)Error: Badge text in sidebars.yaml shows as “undefined” in navigation Cause: Using incorrect badge format (string instead of object) Solution: Use the correct badge object format:
# ❌ Incorrect (shows "undefined")
menu:
- title: "Features"
document: /features.md
badge: "new"
# ✅ Correct format
menu:
- title: "Features"
document: /features.md
badge:
variant: "info"
text: "new"
Available badge variants: info, success, warning, error, neutral
Error: {{badge "My Badge" "xxprimaryxx"}} not rendering properly
Solutions:
{{badge "Status: Active" "success"}} within textSymptoms: okidoki generate takes more than a few seconds
Solutions:
dist/ directorySymptoms: dist/ directory is unexpectedly large
Solutions:
imageoptim or online compressorsokidoki generate --verbose (or -v) for detailed outputWhen reporting a problem, please include:
okidoki --versionnode --versionokidoki.yaml and sidebars.yamlEnable verbose logging to troubleshoot build issues:
# Enable debug output (long form)
okidoki generate --verbose
# Enable debug output (short form)
okidoki generate -v
# Alternative: set environment variable
DEBUG=okidoki okidoki generate
This will show:
Current OkiDoki version: 1.1.35
If you’re experiencing persistent issues, try a clean installation:
# Uninstall OkiDoki
npm uninstall -g okidoki
# Clear npm cache
npm cache clean --force
# Reinstall OkiDoki
npm install -g okidoki
# Verify installation
okidoki --version
For project-specific issues:
# Remove generated files
rm -rf dist/
# Regenerate documentation
okidoki generate
Still need help? Check the Quick Start Guide or review the complete Documentation Reference.