Vercel & Netlify
Deploy your documentation with zero configuration on Vercel or Netlify.
Vercel
Quick Deploy
- Push your project to GitHub
- 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) |
- Click Deploy
vercel.json
For more control, add a vercel.json:
vercel.json
{
"buildCommand": "gem install docyard && docyard build",
"outputDirectory": "dist",
"installCommand": "echo 'skip'"
}
Custom Domain
- Go to Settings > Domains
- Add your domain
- Update your config:
docyard.yml
build:
base: https://docs.example.com
Netlify
Quick Deploy
- Push your project to GitHub
- Import the repository on netlify.com
- Configure build settings:
| Setting | Value |
|---|---|
| Build Command | gem install docyard && docyard build |
| Publish Directory | dist |
- Click Deploy site
netlify.toml
For more control, add a netlify.toml:
netlify.toml
[build]
command = "gem install docyard && docyard build"
publish = "dist"
[[redirects]]
from = "/*"
to = "/404.html"
status = 404
Custom Domain
- Go to Domain settings
- Add your custom domain
- Update your config:
docyard.yml
build:
base: https://docs.example.com
Environment Variables
Both platforms support environment variables for sensitive configuration.
Analytics
Instead of committing analytics IDs:
docyard.yml
analytics:
google: ${GOOGLE_ANALYTICS_ID}
Set GOOGLE_ANALYTICS_ID in your platform’s environment settings.
Preview Deployments
Both Vercel and Netlify automatically create preview deployments for pull requests. This lets you review documentation changes before merging.
Edit this page
Last updated
Was this page helpful?
Thanks for your feedback!