Vercel & Netlify
Deploy your documentation with zero configuration on Vercel or Netlify, or use the deploy command.
Vercel
Quick Deploy
Push to GitHub
Push your project to a GitHub repository.
Import on Vercel
Import the repository on vercel.com.
Configure build settings
| Setting | Value |
|---|---|
| Framework Preset | Other |
| Build Command | gem install docyard && docyard build |
| Output Directory | dist |
| Install Command | (leave empty) |
Deploy
Click Deploy.
vercel.json
For more control, add a vercel.json:
{
"buildCommand": "gem install docyard && docyard build",
"outputDirectory": "dist",
"installCommand": "echo 'skip'"
}
Git History
For accurate “Last updated” timestamps, enable deep cloning by adding this environment variable in your Vercel project settings:
| Variable | Value |
|---|---|
VERCEL_DEEP_CLONE |
true |
Without this, all pages will show the deployment time instead of their actual modification date.
Custom Domain
- Go to Settings > Domains
- Add your domain
- Update your config:
url: https://docs.example.com
Netlify
Quick Deploy
Push to GitHub
Push your project to a GitHub repository.
Import on Netlify
Import the repository on netlify.com.
Configure build settings
| Setting | Value |
|---|---|
| Build Command | gem install docyard && docyard build |
| Publish Directory | dist |
Deploy
Click Deploy site.
netlify.toml
For more control, add a netlify.toml:
[build]
command = "gem install docyard && docyard build"
publish = "dist"
[[redirects]]
from = "/*"
to = "/404.html"
status = 404
Git History
For accurate “Last updated” timestamps, Netlify needs full git history. Update your build command:
[build]
command = "git fetch --unshallow || true && gem install docyard && docyard build"
publish = "dist"
The || true ensures the build continues even if the repo is already complete (e.g., during local testing).
Custom Domain
- Go to Domain settings
- Add your custom domain
- Update your config:
url: https://docs.example.com
Both Vercel and Netlify build images include libvips, so social cards work out of the box.
The Pagefind binary is downloaded and cached automatically. Both platforms preserve the cache between builds.
Was this page helpful?
Thanks for your feedback!