Deployment Guide
Learn how to deploy your XD Wiki documentation to different hosting platforms.
Netlify Deployment
The easiest way to deploy your documentation is using Netlify:
1. Connect Repository
- Go to Netlify
- Click “New site from Git”
- Connect your GitHub repository
2. Build Settings
Configure the build settings:
- Build command:
hugo --gc --minify
- Publish directory:
public
- Hugo version: Set
HUGO_VERSION
environment variable
3. Environment Variables
Add these environment variables in Netlify:
HUGO_VERSION=0.125.7
HUGO_ENV=production
GitHub Pages
For GitHub Pages deployment:
- Enable GitHub Pages in repository settings
- Use GitHub Actions for building
- Set up a workflow file
Manual Deployment
Build the site locally and upload:
hugo --gc --minify
# Upload the contents of the 'public' directory
Custom Domain
Configure a custom domain in your hosting provider’s settings.