This guide covers deploying the node-webcodecs Mintlify documentation.
Mintlify provides free hosting for open-source projects.
-
Sign up for Mintlify
- Go to https://mintlify.com
- Sign up with your GitHub account
- Connect your repository:
caseymanos/node-webcodecs
-
Configure the project
- Mintlify will automatically detect the
docs/mint.jsonfile - Set the subdomain (e.g.,
node-webcodecs.mintlify.app)
- Mintlify will automatically detect the
-
Get API Key (for GitHub Actions)
- Go to Mintlify dashboard → Settings → API Keys
- Generate a new API key
- Add it to GitHub Secrets:
- Repository Settings → Secrets → Actions
- Name:
MINTLIFY_API_KEY - Value: Your API key
-
Deploy
- Push to
mainbranch - GitHub Actions will automatically deploy
- Or manually:
cd docs && mintlify deploy
- Push to
The GitHub Action (.github/workflows/mintlify-deploy.yml) automatically deploys when:
- Changes are pushed to
mainbranch - Files in
docs/are modified
cd docs
mintlify deployDeploy the documentation to your own Vercel account.
-
Install Vercel CLI (if not already installed)
npm install -g vercel
-
Login to Vercel
vercel login
-
Deploy
vercel --prod
-
Or use Vercel GitHub Integration
- Go to https://vercel.com/new
- Import the
caseymanos/node-webcodecsrepository - Vercel will auto-detect settings from
vercel.json - Deploy!
The vercel.json file is pre-configured with:
- Framework: Next.js (Mintlify uses Next.js)
- Build command:
cd docs && mintlify build - Output directory:
docs/_next
- Go to Vercel Project Settings → Domains
- Add your custom domain (e.g.,
docs.node-webcodecs.com) - Configure DNS records as instructed
For a simple static deployment:
-
Build the docs
cd docs mintlify build -
Deploy to GitHub Pages
# Install gh-pages npm install -g gh-pages # Deploy gh-pages -d docs/_next
-
Enable GitHub Pages
- Repository Settings → Pages
- Source:
gh-pagesbranch - Save
After editing .mdx files:
-
Test locally
cd docs mintlify devPreview at http://localhost:3000
-
Commit and push
git add docs/ git commit -m "Update documentation" git push origin main -
Automatic deployment
- Mintlify Cloud: Auto-deploys via GitHub Action
- Vercel: Auto-deploys via Vercel integration
- GitHub Pages: Manual
gh-pages -d docs/_next
-
Check
mint.jsonsyntax:cd docs mintlify dev -
Ensure all referenced files exist:
# The mint.json references these files ls -la docs/getting-started/ ls -la docs/guides/ ls -la docs/cookbook/
- Mintlify Cloud: Check GitHub Actions logs
- Vercel: Check Vercel deployment logs
- Clear cache: Force rebuild in platform settings
- Verify DNS records (usually CNAME or A record)
- Wait for DNS propagation (up to 48 hours)
- Check platform-specific SSL certificate status
Local Development: http://localhost:3001
Production (after setup):
- Mintlify Cloud:
https://node-webcodecs.mintlify.app(or custom domain) - Vercel:
https://node-webcodecs.vercel.app(or custom domain) - GitHub Pages:
https://caseymanos.github.io/node-webcodecs/
Choose the option that best fits your needs. Mintlify Cloud is recommended for the best integration and features.