OkiDoki generates static files in the dist/
folder that can be deployed anywhere. Here are the most popular deployment options:
Deploy directly from your GitHub repository:
Create .github/workflows/deploy.yml
:
name: Deploy to GitHub Pages
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install OkiDoki
run: npm install -g okidoki
- name: Generate site
run: okidoki generate
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
https://username.github.io/repository-name
If you’re hosting at username.github.io/repository-name
(not a custom domain), add this to your okidoki.yaml
:
site:
title: "My Documentation"
description: "Documentation for my project"
baseUrl: "/repository-name/" # Replace with your actual repository name
Example:
john/my-awesome-docs
https://john.github.io/my-awesome-docs
"/my-awesome-docs/"
Note: Skip this step if using a custom domain (e.g., docs.example.com
).
Deploy with automatic builds from Git or manual drag-and-drop:
npm install -g okidoki && okidoki generate
dist
NODE_VERSION
: 18
(or your preferred version)# Generate your site
okidoki generate
# Install Netlify CLI
npm install -g netlify-cli
# Deploy (first time)
netlify deploy --dir=dist --prod
Deploy with Git integration or Vercel CLI:
npm install -g okidoki && okidoki generate
dist
# Generate your site
okidoki generate
# Install Vercel CLI
npm install -g vercel
# Deploy
vercel --prod
Traditional Web Hosting: Upload the dist/
folder contents via FTP/SFTP to your web server’s public directory.
Amazon S3 + CloudFront: Perfect for high-traffic sites requiring global CDN distribution.
Firebase Hosting: Google’s hosting solution with easy CLI deployment.
All these platforms support custom domains and HTTPS out of the box. Your documentation will be fast and globally distributed! 🚀