Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.grigori.in/llms.txt

Use this file to discover all available pages before exploring further.

Documentation Deployment Guide

This guide covers how to deploy the Document Converter API documentation using Mintlify.

1. Mintlify Cloud

The easiest way to deploy is using Mintlify’s cloud platform
1

Sign up

Sign up at Mintlify
2

Connect GitHub

Connect your GitHub repository
3

Configure settings

  • Repository: your-username/doc-converter
  • Docs path: /docs
  • Branch: main
4

Deploy

Deploy automatically on push

2. Local Testing

Before deploying, test locally:
npm install

Manual Deployment Options

  1. Install Vercel CLI:
    npm install -g vercel
    
  2. Deploy from docs directory:
    cd docs
    vercel --prod
    
  3. Configure vercel.json:
    {
      "name": "doc-converter-docs",
      "version": 2,
      "builds": [
        {
          "src": "mint.json",
          "use": "@mintlify/cli",
          "config": {
            "installCommand": "npm install",
            "buildCommand": "mintlify build"
          }
        }
      ]
    }
    

Custom Domain Setup

1

Access Dashboard

Go to your Mintlify dashboard
2

Navigate to Settings

Navigate to SettingsCustom Domain
3

Add Domain

Add your domain (e.g., docs.yourdomain.com)
4

Update DNS

Update DNS records:
Type: CNAME
Name: docs
Value: your-site.mintlify.app

Environment Variables

For production deployments, set these environment variables:
# Production environment
NODE_ENV=production

# Custom domain (if applicable)
CUSTOM_DOMAIN=docs.yourdomain.com

# Analytics (optional)
GOOGLE_ANALYTICS_ID=G-XXXXXXXXXX

Monitoring

Health Check

Add a health check endpoint to monitor your documentation:
// scripts/health-check.js
const https = require('https');

function checkHealth() {
  const options = {
    hostname: 'docs.yourdomain.com',
    port: 443,
    path: '/',
    method: 'GET'
  };

  const req = https.request(options, (res) => {
    console.log(`Status: ${res.statusCode}`);
    console.log(`Headers: ${JSON.stringify(res.headers)}`);
  });

  req.on('error', (e) => {
    console.error(`Health check failed: ${e.message}`);
  });

  req.end();
}

checkHealth();

Uptime Monitoring

UptimeRobot

Free uptime monitoring

Pingdom

Comprehensive monitoring

StatusCake

Simple uptime checks

Performance Optimization

1. Build Optimization

{
  "scripts": {
    "build": "mintlify build --optimize",
    "build:prod": "NODE_ENV=production mintlify build --optimize --minify"
  }
}

2. CDN Setup

Use a CDN for better performance:
// mintlify.config.js
module.exports = {
  cdn: {
    enabled: true,
    domain: 'cdn.yourdomain.com'
  }
};

3. Caching Headers

Configure caching in your web server:
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
    expires 1y;
    add_header Cache-Control "public, immutable";
}

location ~* \.(html|json)$ {
    expires 1h;
    add_header Cache-Control "public, must-revalidate";
}

Security

HTTPS Setup

certbot --nginx -d docs.yourdomain.com

Content Security Policy

Add CSP headers for security:
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:";

Backup Strategy

# Automated backup script
#!/bin/bash
DATE=$(date +%Y%m%d_%H%M%S)
git clone https://github.com/your-username/doc-converter.git backup_$DATE
tar -czf docs_backup_$DATE.tar.gz backup_$DATE/docs
rm -rf backup_$DATE
# Backup built documentation
#!/bin/bash
DATE=$(date +%Y%m%d_%H%M%S)
cd docs
npm run build
tar -czf ../docs_site_backup_$DATE.tar.gz _site/

Troubleshooting

Common Issues

# Clear cache and rebuild
rm -rf node_modules package-lock.json
npm install
npm run build

Debug Mode

Enable debug mode for troubleshooting:
DEBUG=true npm run dev

Maintenance

Regular Updates

1

Update dependencies

npm update
2

Update Mintlify CLI

npm install -g @mintlify/cli@latest
3

Check for broken links

npm install -g broken-link-checker
blc http://docs.yourdomain.com

Content Review

Set up regular content reviews:

Quarterly Reviews

Review all documentation quarterly

Update Screenshots

Keep screenshots and examples current

Verify API Changes

Document new API changes

Check Information

Remove outdated information

Support

For deployment issues:
  1. Check Mintlify documentation
  2. Review deployment logs
  3. Test locally first
  4. Contact support if needed

Next Steps

After deployment:
1

Set up monitoring

Configure monitoring and alerts
2

Configure analytics

Set up analytics tracking
3

Test functionality

Test all functionality thoroughly
4

Update DNS

Update DNS and SSL certificates
5

Inform team

Share new documentation URL with team